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:
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.
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.
©2020-2021 Phenix Real Time Solutions, Inc.