Skip to main content
Skip table of contents

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
{
    "uid": "0a20f93c-d370-4107-8548-97bb64c53ed2"
}
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
curl -k --location --request PUT 'https://localhost:8080/api/streams/{stream-uid}/ondemand/?token=string&record=bool&duration=seconds'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.