Request RTSP/HLS Live Stream URL

Last Updated on : 2025-01-02 02:51:13download

Request RTSP/HLS Live Stream URL.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
uidStringuritrueUser ID
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultStreamVOResponse

Description of result

Parameter nameTypeDescription
urlStringLive 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.