Basic Embedding Information

This topic describes the information you will need to provide when you embed Player V4 on a web page. See for details.

Retrieve Your pcode

Player V4 requires that you provide your pcode, which you can retrieve from Backlot.
  1. Log into your Backlot account.
  2. Click the ACCOUNT tab.
  3. Click the Developers subtab.
  4. Look for your API key on the left side of the screen.
  5. Copy your pcode, which is the alphanumeric string that precedes the period. For example, if the API key is xxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxx, then use the first 28 characters (xxxxxxxxxxxxxxxxxxxxxxxxxxxx) for the pcode.

Retrieve a Player Branding ID

Player V4 requires that you provide a playerBrandingId, which references a player defined in your Backlot account. Backlot displays this as Player ID. To retrieve this from Backlot:
  1. Log into your Backlot account.
  2. Click the MANAGE tab.
  3. Click the Embed subtab.
  4. Select your player from the Custom Player dropdown.
  5. Copy its Player ID, which you need to provide in the playerBrandingId.

Alternatively, you can retrieve the Player ID with the Backlot API. See the Backlot API reference for details.

You can use players that have already been defined for Player V4 (see Migrating to Player V4), or you can create an entirely new player.

There are two ways in which to create a player in Backlot:

Retrieving the Asset ID

Player V4 requires that you provide an asset ID that uniquely identifies the video asset. An asset ID is the same as a ContentID (in the Backlot UI) and an embed_code (in the Player V4 JavaScript API). To retrieve this from Backlot:
  1. Log into your Backlot account.
  2. Click the MANAGE tab.
  3. Click the Embed subtab.
  4. Select your content from the list of video assets.
  5. Copy its Content ID, which you need to provide in the assetId.

Retrieving a Default Embed Code

You can retrieve a default Player V4 embed code from Backlot and paste it into your web page.
  1. Log into your Backlot account.
  2. Click the MANAGE tab.
  3. Click the Embed subtab.
  4. Under Custom Player, select a Player V4 player.
  5. In the Generate Embed Code section, configure any settings you want to change.
  6. Copy the embed code and paste it into your web page.
Note: The default player does not include all available plugins. You might need to add some manually after pasting the default code, including any analytics plugins (except Ooyala IQ), playlists, and some add plugins (SSAI, VAST/VPAID). See Player V4 Plugins for a complete list.

해당 내용이 도움 되었습니까?