Skip to content

Add support for concatenation of AdsMediaSources #3750

@priscila225

Description

@priscila225

Is it possible to have a DynamicConcatenatingMediaSource with multiple AdsMediaSource on this?

Example of one case:

mediaSource1 and mediaSource2 requesting AdsMediaSource for each media source, concatenate the results and then play :

val concatenatedSource = ConcatenatingMediaSource(mediaSource1 , mediaSource2);
dynamicMediaSource.addMediaSource(concatenatedSource)
player?.prepare(dynamicMediaSource, false, false)

When I tried without the AdsMediaSource, it works fine. But when i tried to add AdsMediaSource for each one and concatenate this i got a nullpointer.

Just want to know if this is possible and if yes, please provide a example of how to handle multiple ads with playlist.

Thank you!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions