Show a Video Ad with the VideoJS player

This page is an example of using Prebid Video with a specific player. For a general guide to showing video ads with Prebid.js, see Show Video Ads with DFP.

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.

Examples

Click here to view a demo page with this example.

Click Edit in JSFiddle (below) to open the example in a new tab.

Troubleshooting Common Issues

For tips and troublshooting info, see: