Virtual Channel - Demo in MPEG DASH

Number of APIs: 4

This collection runs a set of API Calls that helps you create a quick demo of the Virtual Channel Application on broadpeak.io, in DASH Segment Template with Timeline - Profile ISO/IEC 23009-1 - Part 8.4 - Live.

The demo run 4 consecutive VOD assets of 5min each. 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 MPEG-DASH 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
  • 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. 2.1 Create a Virtual Channel Service POST {{API_SCHEME}}://{{API_ROOT}}/services/virtual-channel

  4. 3.4 Schedule Cosmos Laundromat POST {{API_SCHEME}}://{{API_ROOT}}/services/virtual-channel/{{VirtualChannelId}}/slots