googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

How to load ads again auto when change video source src? #1113

Closed JonasWater closed 1 year ago

JonasWater commented 1 year ago

I found that the ad appears only when the video is loaded for the first time, and when it appears once, if I change the video source src, the ad does not appear again (even though it does a pre-roll check every time).

So, how to load ads again auto when change video source src?

Thank for your help~

Kiro705 commented 1 year ago

Hello @JonasWater ,

I think you will need to make another ad request to have ads load for a new content source. Although, I am not sure this use-case is specifically supported by the plugin, but should still be possible.

If you can share a code snippet to highlight your use-case, and I can help debug the issue from there.

Thank you, Jackson IMA SDK team