Skip to content
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

Is there any way to do the preloading of the preroll ad in the Exoplayer? #140

Open
Anas-mirza912 opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@Anas-mirza912
Copy link

I'm using the IMA ads Extension in ExoPlayer, and I'm facing an issue where ads take some time to load due to internet connectivity or other unforeseen circumstances. To ensure a bufferless video playback experience in Android, I want to precache the IMA ad from the VAST file. While ExoPlayer automatically loads and stores midroll ads in the cache, it doesn't have sufficient time to preload preroll ads. Is there a way to address this issue and precache preroll ads for smoother playback?

@Kiro705
Copy link
Member

Kiro705 commented Jan 29, 2024

Hello @Anas-mirza912 ,

Based on the way the IMA extension handles ad loading this is not currently possible. See the IMA Android preloading guide's timing table. With preloading, IMA starts loading ads following AdsManager.init().

However, with the IMA extension, AdsManager.init() and AdsManager.start() are called directly after each other. See the extension code. I would recommend creating an issue on the ExoPlayer GitHub, explaining this, to see if there is a solution to allowing a call to .init() to start loading pre-roll ads before playback.

Thank you,
Jackson
IMA SDK team

@Kiro705 Kiro705 self-assigned this Jan 29, 2024
@Anas-mirza912
Copy link
Author

Hi @Kiro705
I am getting this error after the ad is loaded.

Screenshot 2024-02-16 at 4 48 34 PM

here are the logs for more details.

I'm testing a preroll ad here with the preroll test uri, and I want to avoid increasing the timeout because it could hurt the user experience. Can you help me fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants