How can I start recording a VOD asset after starting a stream?

In most cases, creation of a VOD asset starts at the time of publishing, using the “on-demand” publishing capability. However, some times you may wish to turn VOD capture on and off via an API.

The APIs to use are Start Transcoding and Stop Transcoding.

 Instructions

To start and stop VOD recordings:

  1. Note the streamId that you wish to record. This can be obtained by subscribing to notifications or from the API response to the publish-uri method.

  2. Determine what asset type is desired (DASH or HLS) and any other options such as quality.

  3. Send a POST request to /pcast/transcoding endpoint as shown in the API documentation. Note the transcodingId returned by the API call.

  4. To end capture of the VOD asset, send a DELETE request to /pcast/transcoding/<urlEncodedTranscodingId> endpoint as shown using the transcodingId returned in the previous step.

 

©2020-2021 Phenix Real Time Solutions, Inc.