FAST Channel - Demo in HLS

Number of APIs: 5

This collection runs a set of API Calls that helps you create a quick demo of the Virtual Channel Application on broadpeak.io applied to FAST scenario with the insertion of Ad breaks, in HLS v4.

The demo run 4 consecutive VOD assets of 5min each, separated by 1 Ad break of 45s. The sequence is then the folowing: 5min content, 45s Ad break, 5min content, 45s Ad break, 5min content, 45s Ad break, 5min content, 45s Ad break. By default the Virtual Channel starts 2 min in the future, but this can be changed via the StartFromNowinMin collection variable.

Setup

  1. Sign up/in on https://.app.broadpeak.io/ and generate your API token (bearer token). More info on how to generate here: https://developers.broadpeak.io/docs/4-preparing-your-scheduling-system#generate-your-api-ke
  2. Fork this collection into your own Qodex workspace.
  3. Set your API key retrieved in 1. as a current value of the API_TOKEN your environment variable, and save it. Do not use Collection variable if your workspace is public as it might expose your API token to everyone.
  4. Run the collection (make sure you ticked the save variables option)
  5. After Step 2.1, which is the creation of the Virtual Channel, you should be able to retrieve the Streaming URL in the VirtualChannelUrl variable. It will also be displayed in the console. Use this URL in a HLS player to experience the Virtual Channel.

Aftermath

Once your demo is over, you won't be able to run it again as Sources and Services already exists. You can manually through the UI, or through the API delete them. Ids can be found in the following collection variables:

  • VirtualChannel id: VirtualChannelId
  • Live Source id: LiveSourceId
  • Ad Server id: AdServerSourceId
  • Tears of Steel Source id: ToSSourceId
  • Sintel Source id: SintelSourceId
  • Big Buck Bunny Source id: BBBSourceId
  • Cosmos Laundromat Source id: CosmosLSourceId
  1. 1.1 Define a base Live stream as a Live Source POST {{API_SCHEME}}://{{API_ROOT}}/sources/live

  2. 1.5 Define Cosmos Laundromat as an Asset Source POST {{API_SCHEME}}://{{API_ROOT}}/sources/asset

  3. 1.6 Define Ad Server configuration POST {{API_SCHEME}}://{{API_ROOT}}/sources/ad-server

  4. 2.1 Create a Virtual Channel Service POST {{API_SCHEME}}://{{API_ROOT}}/services/virtual-channel

  5. 3.8 Schedule Ad Break 4 POST {{API_SCHEME}}://{{API_ROOT}}/services/virtual-channel/{{VirtualChannelId}}/slots