ReconfigureStream
Controlling playback and capturing of a stream. The state is not saved. It is only used for temporarily changing the state and is reset to the initial state after server reboot.
PUT /api/streams/{stream-uid}/reconfigure/
Body | |||||||||
json |
JSON
| ||||||||
stream-uidoptional | uid | Unique identifier of the stream {@hint:uid} | |||||||
tokenrequired | string | Authorization token for API requests. see Mediaserver/Web API/Authorization/CreateApiToken | |||||||
enableoptional | bool | ||||||||
restartoptional | bool | Restart the stream. The current connection with the source is interrupted, the DVR is reloaded, the stream state and buffers are cleared. | |||||||
broadcastoptional | bool | Stop the stream broadcast. All clients are disconnected, new clients cannot connect for playback. DVR continues to record. | |||||||
reloadoptional | bool | Reload the DVR indices. | |||||||
dvroptional | bool | Stop DVR recording. Interrupts the DVR recording. Previously saved archive remains available. If the timeout parameter is specified, DVR recording will resume after the specified interval. | |||||||
timeoutoptional | seconds | The time interval after which DVR recording will resume. |
Response | |||||||||
200 | Returns the UID of the stream. | ||||||||
JSON
| |||||||||
404 | The stream with such UID was not found. | ||||||||
403 | Authorization error. Invalid or missing API access token. see Mediaserver/Web API/Authorization/CreateApiToken. |
Example | |||||||||
JSON
|