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
Creating Custom Media Source, to Mimic the performance of AdMediaSource with Custom Ad Servers #3967
Comments
The player will pass an Please take a look at If you can get things to work using the provided |
Thanks, Andrew, for this quick update, I will read the code at ImaAdsLoader and will give it a try. |
Hello Andrew, I read the ImaAdsLoader class, and your mention of AdGroups and Indexes, approach is very different from my Ad Server, |
Could you describe a typical playback timeline? Or, could you give a more precise description and/or example of what you mean by 'play ads in between the main content'? For example, a typical playback might have a a preroll ad, content from 0 to 60 seconds and a midroll ad, followed by content from 60 seconds to the end. That would map onto an ad playback state with two ad groups (at 0 and 60 seconds) with one ad each, and the relevant ad media URIs. If it's impossible to implement an |
Ok, here is one use case |
|
Thanks Andrew, |
Hello Andrew, |
Yes, Are you calling A lot of the code in |
Sure Andrew, then I will try to spend some time reading the code, will update you. |
Hello Andrew, |
The issue may be locked automatically if it's closed for a certain period, but please feel free to file a new issue linking back to this one if you need to. Thanks! |
Hello Andrew,
I am opening this as a quesstion only and also as a last resort(tried stackOverFlow and Medium)
I need to implement a Custom MediaSource that Mimics the performance of AdMediaSource that has been created for IMA integration.
I read the code, but got few questions:
How do you manage creating MediaSource placeholders and populate them dynamically,(In between Main Content).
How do you decide when to clip the MainSource(as I saw in the Google I/O 17, that the player only buffers till the adBreakPoint).
Also if you can give me a skeleton of how things work in th AdMediaSource, that would be a lot helpful.
Also Andre, as Suggested by you in medium, I have tried the AdsLoader interface, but there is no method where I can pass a Url of the Ad.My ad Server is a different one than IMA but does the same thing(tell's me when to play ad, but provides Url at the time of playBackOnly(I will teel the server when the position comes, to get the Url)).
The text was updated successfully, but these errors were encountered: