-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
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!
Reactions are currently unavailable