-
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
Provide FixedAdsLoader to play ads from URLs known in advance #4680
Comments
We don't have any sample code for that at the moment, apart from the snippets @marcbaechinger has already provided in the Stack Overflow answer and #3664. It's probably a lot more complicated than what you need, but you could try using the source for I'll use this issue to track implementing something like a |
Ok i give more clear code for those new about this but still not working.
` mediaSourceWithAds =
however, in time 30 seconds, ads not load from local phone folder. the current video stop until end and not play again. |
Any updates on this? I am also facing similar issue. I followed the link : https://stackoverflow.com/questions/49871348/how-to-show-ads-at-specific-points-using-exoplayers-ima-extension However it is not even playing main content video.I also trying creating Media source containing preroll and main content using ConcatenatingMediaSource and passed this source to AdsMediaSource |
Since this issue was closed but not yet implement in current version 2.9.6. May I know when u will take this as enhancement also. |
@hafiz013 This enhancement is still open but we are currently treating it as a low priority, and don't have an ETA for it. |
Ok note thanks |
Any updates or guideline to implement a simple custom AdsLoader? |
No updates I'm afraid. |
There are any new about this? We need show ads pre mid and post roll. |
We are still treating this as a low priority, I'm afraid. I'll update this issue if/when we get round to it. |
I found out that someone post about how to play ads locally through this link https://github.com/google/ExoPlayer/issues/3664 . However, it not show the code in details how to implement ads loader without ima extension. As solution, I found this link helpfully to use https://www.programcreek.com/java-api-examples/?code=googleads/googleads-ima-android/googleads-ima-android-master/BasicExample/app/src/main/java/com/google/ads/interactivemedia/v3/samples/videoplayerapp/MyActivity.java and this link to play ads multline (meaning that every 30 seconds play the ads) https://stackoverflow.com/questions/49871348/how-to-show-ads-at-specific-points-using-exoplayers-ima-extension. If someone know how to customize adsloader without ima extension please share the code. Thank you.
The text was updated successfully, but these errors were encountered: