Show a prebid ad in a VideoJS player

This page is an example of using prebid video with a specific player. For a general guide to using video in prebid, click here.


This page contains:

  • Using invokeVideoPlayer to set up and access the VideoJS player instance.
  • Using a plugin to play ads in the player.
  • Configuring the ad plugin options.


Player specific notes:

  • Make sure to incude at least one advertising plugin you want to use on the page. For this demo, we're using the Mail Online vast/vpaid plugin.
  • A guide to the options the vastClient accepts can be found here.


Click here to view a demo page with this example. Click Edit in JSFiddle to open the example in a new tab.

For tips and troublshooting info, see: