Show a prebid ad in a Brightcove 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 Brightcove player instance.
  • Using bc() to make sure all the necessary scripts are loaded before playing an ad.
  • Playing an ad using Brightcove's ima3 plugin.
  • Configuring the player's ima3 settings on page.


Player specific notes:

  • For this demo we'll be configuring the player's ima3 settings on the page instead of in video cloud. Make sure you load the ima3 script and css file in addition to your player script.
  • On the publish page for the video or player, choose the Advanced embed code (not Standard).


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: