Pause or Resume a Stream
Pauses or resumes a stream
Authorizations: Recordings - STREAM
Requests
State can be “playing” or “paused”. If “state” is omitted, then it is toggled.
PUT /apis/streams/:streamId
{
"state": "playing"
}
Response
Success
{
"data": {
"address": "239.134.32.100",
"port": 4900,
"asset": "a907804b-d6d5-4328-9bd6-5aca9abbac8c",
"username": "haiadmin",
"id": "2ecc5663-06ee-44be-863a-2b32ef401c4d",
"state": "playing",
"destinations": [{
"trackId": 3,
"address": "239.134.32.100",
"port": 4900
}
}
}
Error
Code | Payload | Description |
---|---|---|
|
| Invalid state. |
|
| A stream with UUID |