gumgum / gg-ez-vp

Simple video player with minimal setup, intuitive API and straightforward features
https://gumgum.github.io/gg-ez-vp
MIT License
7 stars 4 forks source link

Some VPAID won't emit the 'AdRemainingTimeChange' event #82

Closed edrpls closed 4 years ago

edrpls commented 4 years ago

Describe the bug Some VPAID sources won't emit the AdRemainingTimeChange event. The current code depends entirely on this event to emit the playback-progress event. We could either add a fallback when the event is not emitted by the time onAdVideoFirstQuartile runs or just emit the playback-progress event at 25%, 50%, 75% and 100% since at least on of these listeners is always implemented.

Smartphone :