You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
To be honest I don't know what is the intention of this event but found it not sufficient enough in case of problem reading/loading vast. By this I mean, I would expect video playback should start immediately when vast fails. But it doesn't - if getContent method fails, we have to wait a few seconds for ad timeout to see video playing.
By analyzing state diagram of videojs.ads I found we should trigger adserror event to play user video. However it doesn't work as expected until adsready is already called,
As quick mockup I added following delegate for adscanceled event:
player.on('adscanceled',function(){// Dirty. Without adsready adserror doesn't fire user videoplayer.trigger('adsready');player.trigger('adserror');});
with regards
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To be honest I don't know what is the intention of this event but found it not sufficient enough in case of problem reading/loading vast. By this I mean, I would expect video playback should start immediately when vast fails. But it doesn't - if getContent method fails, we have to wait a few seconds for ad timeout to see video playing.
By analyzing state diagram of videojs.ads I found we should trigger adserror event to play user video. However it doesn't work as expected until adsready is already called,
As quick mockup I added following delegate for adscanceled event:
with regards
The text was updated successfully, but these errors were encountered: