-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for concatenation of AdsMediaSources #3750
Comments
This is not possible at the moment, because I'll mark this as an enhancement to allow composition of |
Thanks @andrewlewis ! And for now, you know a way to workaround this? maybe I can workaround this by creating the playlist manually without the DynamicConcatenatingMediaSource and requesting ima for each video of the list on the moment before the player start one by one? |
Yes. You can just play each |
Makes sense, this seamless transition is awesome! Hope to have this soon. Thanks to mark as enhancement |
Hi, @andrewlewis, are there any updates on this one? Any idea of when this functionality could be released? |
No updates, I'm afraid. At the moment we aren't planning to look at this soon, but if anyone else is waiting for the feature please leave a comment so we can prioritize based on demand. Thanks! |
I'm a dev working for a major media corporation... this would be a great feature for us |
Hi, |
We don't have any updates yet I'm afraid. The recommended approach for now is for apps to change the player's source each time a playlist items finishes playing. #3636 describes how to pre-load ads, which may help reduce the delay when starting to play a new playlist item. |
I'm a dev working for a major media corporation... this would be a great feature for us as well. |
I am keen on this too! |
+1 |
Would also love to get this feature! |
Hi @andrewlewis, sorry to bother again, but are there any updates on this one? It seems like a lot of people are interested. |
Still no updates I'm afraid. Understood that this is a desired feature. I'll take another look at how long this would take to implement soon, but please don't plan on it being addressed this quarter. |
Thanks a bunch for that @andrewlewis. It is open source, so you shouldn't feel obligated to implement it. It is still nice to know that you guys can get it in at some point :) |
It would be great if anyone who would like to use this feature could email dev.exoplayer@gmail.com with subject "Issue #3750" and provide a bit more detail on their app and use case. Thanks! |
I am very interested in this feature. |
@andrewlewis hi, any updates? |
@gengar3 No updates I'm afraid. |
This would be wonderful for us as well. |
I'm waiting for this feature... I Hope it will release as soon as possible. because in playlist mode , we have requirement every episode has different ads. |
+1 |
Has anybody successfully worked around this limitation? |
@andrewlewis Any update on this feature.We also need this.I would be great if you guys take it as priority task |
+1 for this feature, please. |
+1 |
+1 You could at least warn developers about this. The documentation of AdsMediaSource just tells us that it can't be put into a ConcatenatingMediaSource, but there is no hint that you can't put a ConcatenatingMediaSource into it. |
Any update? This is pretty essential, however, this is not solved yet for a long time. Thanks. |
I'm working on it at the moment. |
Hi, Andres, I tested IMA extension with test ad tags, |
Hi @andrewlewis , Thanks for enriching Exoplayer. It would be great to know by when will this feature be added. Thanks. |
This is in preparation for supporting playlists of ads media sources using ImaAdsLoader. Existing ways of passing ad tags should still function but are deprecated (and won't be supported with playlists). Issue: #3750 PiperOrigin-RevId: 335618364
This is in preparation for supporting playlists of ads media sources using ImaAdsLoader. Existing ways of passing ad tags should still function but are deprecated (and won't be supported with playlists). Issue: #3750 PiperOrigin-RevId: 335618364
In a later change ImaAdsLoader will use multiple AdTagLoaders. This change shouldn't have any substantial changes in behavior (it's almost entirely moving code around). An exception is that ImaSdkSettings is configured when making a request rather than at construction time. Issue: #3750 PiperOrigin-RevId: 339891712
In a later change, the AdPlaybackState will include the playing adsId (set by the AdsLoader) and the ads loader will use this to determine what ad information is associated with the playing/next periods, to allow loading ads in playlists. Apps can continue to pass just a URI for an ad tag with their MediaItem, in which case the associated playlist will request that ad tag just and the same state will be used for all occurrences of the ad tag. This change has breaking changes to the AdsLoader interface and removes deprecated ways of passing the ad tag, as it's very likely to go into a major release anyway and not needing to handle the deprecated cases simplifies ImaAdsLoader. Issue: #3750 PiperOrigin-RevId: 340438580
Issue: #3750 PiperOrigin-RevId: 341020676
Issue: #3750 PiperOrigin-RevId: 341021084
In preparation for adding support for ads in playlists: - Make releasing a no-op if the instance was already released - Remove null checks on non-null `adDisplayContainer` and `adsLoader` - Move initializing the ads manager into a private method as it will need to be called from two places soon. - Misc other cleanup. Issue: #3750 PiperOrigin-RevId: 341021493
Issue: #3750 PiperOrigin-RevId: 343878310
- Remove restriction on `AdsMediaSource`s in playlists in `ExoPlayerImpl`. - Allow playing playlists of `AdsMediaSource`s in the demo app. - Add a sample with ads in a playlist in the demo app. Issue: #3750 PiperOrigin-RevId: 344018774
Issue: #3750 PiperOrigin-RevId: 346079830
It is more realistic for each source to have its own listener and to share `TimelineWindowDefinition`s between them. Issue: #3750 PiperOrigin-RevId: 347398769
Previously the `AdTagLoader` only had one listener which meant that updates that should affect all periods with matching identifiers in the timeline only affected the last-attached one. Fix this by having `AdTagLoader` track all its listeners. Issue: #3750 PiperOrigin-RevId: 347571323
Issue: #3750 PiperOrigin-RevId: 347572122
This is implemented on the development branch and should be in the next major release 2.13. |
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!
The text was updated successfully, but these errors were encountered: