videojs / videojs-contrib-ads

A Tool for Building Video.js Ad Plugins
http://videojs.github.io/videojs-contrib-ads/
Other
381 stars 257 forks source link

Unexpected startLinearAdMode invocation (Preroll) #503

Closed arjitsachdeva closed 3 years ago

arjitsachdeva commented 4 years ago

Welcome to videojs-contrib-ads and thank you for contributing to the project! Below is a template for filing issues that will help us diagnose problems and recommend solutions.

Description

A call to trigger the first ad break results in the Videojs warning: Unexpected startLinearAdMode invocation (Preroll), and it further leads to the second ad starting abruptly before the first one ends.

Steps to Reproduce

Expected Results

The content should have paused to make way for the ad to start playing. Then the second ad should have waited for the first one to trigger the end Linear Ad call.

Actual Results

The first ad ends abruptly and the second ad starts playing.

Versions

All latest versions

Other plugins: please list other plugins that may affect videojs-contrib-ads behavior, especially ad plugins.

Platforms

Browsers: Tested on latest Firefox and Chrome

OS/Devices: Mac OSX

stomata commented 4 years ago

when this happens, it will not show the class 'vjs-ad-playing'. Videojs-ima will play the ad without the div => you can only hear the sound of the ad. And when preroll is finished, the content won't automatically starts playback...

stomata commented 4 years ago

also the .play() would reject the promise.