Start recording a stream.
Stream will be recorded and automatically saved in our video hosting as a separate video VOD:
stream_id
” field. You can find the video by that value later.recording_started_at
” field.record_type
” parameter of the stream.origin_url
” field. Look at the description of the field how to use it.
Stream must be live for the recording to start, please check fields “live” and/or “backup_live
”. After the recording starts, field “recording” will switch to “true”, and the recording duration in seconds will appear in the “recording_duration
” field.
Please, keep in mind that recording doesn’t start instantly, it takes ±3-7 seconds to initialize the process after executing this method.Stream recording stops when:
stop_recording
. In this case, the file will be completely saved and closed. When you execute the stream recording method again, the recording will be made to a new video file.API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
ID of a stream to record
Recording task was set successfully, but there are some actions you need to pay attention
The response is of type object
.