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

How to avoid preroll checks every time when change video source src? #560

Open
JonasWater opened this issue Jul 16, 2023 · 1 comment
Open

Comments

@JonasWater
Copy link

I found that the preroll check will be performed every time the video source is switched, even if it has already successfully loaded an ad?
It alwaystakes several seconds(equal the prerollTimeout) to wait every time, which is not friendly to users.

So, how to avoid preroll checks every time when change video source src?

Thank for your help~

@alex-barstow
Copy link
Contributor

Are you triggering 'adsready' after source change? See relevant docs on 'contentchanged' and 'adsready'.

If you are not able to resolve this it would be helpful if you could share a test page so we can see your specific implementation.

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