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

prevent ads playback use default video options (loop, autoplay, ...) #501

Open MichSimi opened 4 years ago

MichSimi commented 4 years ago

Description

During ads playback, the player continues using the main video option, so if the video has autoplay option or loop option, the midroll will start as a preroll, and loop. Would be awesome if i could set default options for ads playing, ignoring the main ones.

Steps to Reproduce

Set autoplay: true and loop: true in the videojs option.

Versions

videojs-contrib-ads version: 6.6.5

Video-js version: 7.6.3

Other plugins: videojs-ad-scheduler - v0.1.0 vast-client.js vmap-client.js

Platforms

Browsers: eg. Chrome v77

OS/Devices: eg. MacOS 10.14.6

rtkac commented 1 year ago

I am facing the same issue with "loop: true". Is it the expected behaviour or bug? Thanks