Skip to main content

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

400
{"code":"010001", "name":"InputValidationFailed",
"message":"Invalid state <invalid_state>",
"httpStatusCode":400}

Invalid state.

404
{"code":"040003", "name":"StreamNotFound",
"message":"Stream not found",
"httpStatusCode":404}

A stream with UUID streamId was not found.

JavaScript errors detected

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

If this problem persists, please contact our support.