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.
\uD83D\uDCD8 Instructions
To start and stop VOD recordings:
Note the streamId that you wish to record.
Determine what asset type is desired (DASH or HLS) and any other options such as quality.
Send a POST request to
/pcast/transcoding
endpoint as shown in the API documentation. Note thetranscodingId
returned by the API call.To end capture of the VOD asset, send a DELETE request to
/pcast/transcoding/<urlEncodedTranscodingId>
endpoint as shown using thetranscodingId
returned in the previous step.