Nonlinear banner ad

Nonlinear banner through Vroll plugin

The Vroll plugin allows you to play preroll, midroll, and postroll multiple video ads. The latest version of the plugin (available from Nuevo software v 14.2.0) also allows displaying nonlinear banner. The nonlinear banner is hidden when the linear video ad is playing or when the player width is less than 480 pixels. The banner is displayed centered over the control bar and is responsive.
Code snippet
<script>
const player=videojs('my_player', {license: "key"});
player.nuevo({
//possible nuevo plugin options here
player.vroll (
{// preroll video
src:"//yourdomain.com/preroll_video.mp4",
type: "video/mp4",
href: "url-to-go-on-preroll-click",
offset:0,
skip: 5 //optional skip video option.
id=1 //optional preroll video ID if you wish to track ad action.
},{// nonlinear banner image
src:"//yourdomain.com/banner jpg",
type: "image/jpeg",
href: "url-to-go-on-preroll-click",
offset:0
} {//midroll video
src:"//yourdomain.com/midroll_video.mp4",
type: "video/mp4",
href: "url-to-go-on-preroll-click",
offset:0,
skip: 5 //optional skip video option.
});
</script>

Nonlinear banner ad type can be: "image/jpeg", "image/png", "image/gif" or "image/webp".
By default when you click to close a nonlinear banner, it goes hidden and can be restored by clicking the appropriate icon, centered over the control bar. You can also decide to destroy a banner permanently, without an option to restore it. Just set the new parameter restrore: false among other banner ad paramaters.