GET /api/admin/v1/cameras/{camera}/streams
int camera, start of the archive
int
boolean type, stream type
boolean
200 OK
OK
Successful response
{ "url": "wss://labMS1:8080/6367b6dd-4c42-4a94-ad0e-5b3b7c7c91fe/mse_ld?token=token", "fallback_url": "rtsp://labMS3.vms.local:5554/live/4e577e3c-449c-420d-b6b1-42d842edc0e8/?token=token" }
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
402 Payment Required
Payment Required
License error
422 Unprocessable Entity
Unprocessable Entity
Returns a JSON object with an error. Validation
{ "message": "There will be no informative message here", "errors": { "any_key": [ "The reason for the error will be described here" ] } }
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/cameras/{camera}/streams' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "camera": 0, "type": "boolean" }'
$data = array ( 'camera' => 0, 'type' => 'boolean', ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/cameras/{camera}/streams', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.