English
English
简体中文
Contact Us
Register
Log In

Request RTSP/HLS Live Stream URL

Last Updated on : 2022-09-07 09:19:09download

Request RTSP/HLS Live Stream URL.

API address

POST: /v1.0/users/{uid}/devices/{device_id}/stream/actions/allocate

Request parameter

Parameter name Type IN Required Description
uid String uri true User ID
device_id String uri true Device ID

Return parameter

Parameter name Type Description
result StreamVO Response

Description of result

Parameter name Type Description
url String Live Stream URL

Request example

POST: /v1.0/users/ay156402688xxxxvoY5W/devices/6c08578d894xxxx11afye1/stream/actions/allocate
{ "type": "hls" }

Return example

{ "result": { "url": "https://wework1.wgine.com:554/hls/6c08578d894xxx411afye1/c146ioh525qd7j2l1590315x7E7xNu6PW3kXSfQL.m3u8?signInfo=PnwWBVmaoNSubTJ7Fb1cjsJNXZeuXn%2F2k2FFwNS6EuYlD5f3UtciKvNxIyYUHsKvODeI6nmDP3y51sWbXVfqbFu6q9PDNDG005cRkSWnfzA%2BxYuq1JMeJoJvWb8uJd5YNtMlbGcsQ81knGoMXCDtJC9fyY%2FPkEyXQyGntlHzVd0%3D" }, "t": 1615358306701, "success": true }

Error code

For more information, see error code.