Postroll video Ad example

PREMIUM
GOLD

Postroll video through videojs with Nuevo 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>
var player=videojs('player_id');>/div>
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 ended
id:'6' //optional id to track midroll playback and click
})
</script>