embed videos on your site, complete with Prizma's End Slate technology

 
 

This format is called Spotlight.

You just have to copy a couple lines of code to use it. (Using WordPress?)

First, ensure the following is in the <head> tag of your page. If you're already using the Prizma widget in one of its other formats on your site, you've likely completed this step already.

<script src="https://cdn.prizma.tv/widget/prizma-widget.js"></script>

Second (and finally), wherever you want a video to appear in Spotlight, just paste in this code, swapping out the videoURL for wherever your video is stored, and changing the partnerID to match your own.

<script>prizma({
  partnerId: "PB-XXXXXXX",
  spotlight: {
    url: "https://www.youtube.com/watch?v=3CkiJZLyK1g",
    title: "Shark Land: Swimming with Sharks"
  }
});</script>

A note on YouTube embeds

  • YouTube URLs must be the full video URL, not the shortened version (not like https://youtu.be/5d3nASKtGas)
  • YouTube URLs must be in publicly-viewable, not unlisted channels

Kaltura embeds

  • Kaltura embeds require a few extra parameters:
    • spotlight.url - A string of the form "kaltura:<kaltura_entry_id>"
    • spotlight.kalturaPlayerId - The Kaltura Player ID to use
    • spotlight.kalturaFlashVars (optional) - Any extra Kaltura flashvars you wish to pass in to the embed

Example

<script>prizma({
  partnerId: "PB-XXXXXXX",
  spotlight: {
    url: "kaltura:0_abcd1234",
    kalturaPlayerId: "12345",
    kalturaFlashVars: {
      referrer: "http://yoursite.com/shark-land-swimming-with-",
    },
    title: "Shark Land: Swimming With Sharks"
  }
});</script>

Bonus Tip

Want to add a title to Spotlight, like in the example above? Just add the title parameter, so that the final output looks like this:

<script>prizma({
  partnerId: "PB-XXXXXXX",
  videoURL: "https://www.youtube.com/watch?v=3CkiJZLyK1g",
  title: "Shark Land: Swimming With Sharks"
});</script>
Note that the Spotlight format accepts an abbreviated list of embeds. Only partnerId, title, videoURL, and playerCss are acceptable inputs. Learn about playerCss here.

Prizma for WordPress

Prizma for WordPress automatically converts embedded YouTube videos to the Spotlight format, which helps make sure: your viewers see fresh recommendations, you get all the best analytics Prizma has to offer, and of course, immersive, best-in-class recommended videos via End Slate. Go ahead and install it!