Quick Start: Playback API

In this quick start, you will experiment with getting videos and playlists by id and then generating HTML displays of the data.

Introduction

The Playback API has four operations:

  • Get a video by id
  • Get a video by reference id
  • Get a playlist by id
  • Get a playlist by reference id

Authentication

Playback API requests are authenticated using an encrypted policy key string. The CodePen below has a policy key for a sample Brightcove account included, so you can just use that if you wish. You can get policy keys for your account by using either the Policy API or from one of your Brightcove players.

Instructions

Use the CodePen below to explore the API:

  1. Start by just making video and playlist requests for a sample Brightcove account to see the results.
  2. Next, try getting your own policy key using either the Policy API or from one of your Brightcove players.
  3. In the CodePen form below, replace the account id, policy key, video id and playlist id with your own values.
  4. Try modifying the CSS to customize the display of the video data.
  5. Try modifying the JavaScript to fetch videos and playlist by reference id instead of id.

CodePen

See the Pen Playback API Search Test by Brightcove Learning Services (@rcrooks1969) on CodePen.