Postroll video Ad example
Postroll video through Vroll plugin
The vroll plugin allows you to play preroll, midroll, and postroll multiple video ads. Postroll video starts playing when the main video is finished. It's obvious that postroll video ad can play only for VOD video. The only option you must set is time offset value (offset:"100%".) See the code example setup below:Code snippet
<script>const player=videojs('my_player', {license: "key"});player.nuevo({// option1: value1,// option2: value2})player.vroll({src: '//path-to-postroll-video-file.mp4',type: 'video/mp4',href:'url-to-go-on-postroll-click',offset: '100%', //starts when main video endedid:'6' //optional id to track midroll playback and click})</script>