EnableDisableStream
Playback and stream capture control by the server. The state is not saved and is only used for temporarily changing the state, and it is reset to the initial state after the server is rebooted.
PUT /api/streams/{stream-uid}/record/
Body | |||||||||
stream-uidoptional | uid | Unique stream identifier {@hint:uid} | |||||||
pauserequired | bool | Indicates what actions should be taken with stream capture. | |||||||
tokenrequired | string | Authorization token for API requests. See Mediaserver/Web API/Authorization/CreateApiToken. |
Response | |||||||||
200 | Returns the UID of the stream. | ||||||||
JSON
| |||||||||
404 | Stream with this UID was not found. | ||||||||
403 | Authentication error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken. |
Example | |||||||||
JSON
|