OnDemandDVRRecording
Recording DVR on demand. The stream must be configured with the dvr-ondemand = true parameter beforehand. The request, depending on the parameter value, enables/disables DVR recording.
PUT /api/streams/{stream-uid}/ondemand/
Body | |||||||||
stream-uidoptional | uid | Unique identifier of the stream {@hint:uid} | |||||||
tokenrequired | string | Authorization token for API requests. See Mediaserver/Web API/Authorization/CreateApiToken | |||||||
recordrequired | bool | Indicates what actions to take with DVR recording | |||||||
durationrequired | seconds | Sets the DVR recording time interval. If duration = 0, it will record until a request to turn off is received |
Response | |||||||||
200 | Returns the UID of the stream | ||||||||
JSON
| |||||||||
404 | Stream with this UID not found | ||||||||
403 | Authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken for details |
Example | |||||||||
JSON
|