Get Key of Video File

Last Updated on : 2023-06-20 14:53:44download

Generate a key for video files in the cloud by user ID, device ID, and random string.

API address

GET: /v1.0/users/{uid}/devices/{device_id}/storage/stream/key

Request parameter

Parameter name Type IN Required Description
uid String uri true The user ID.
device_id String uri true The device ID.
magic String uri true The random string.

Return parameter

Parameter name Type Description
result HLSKeyVO The returned result.

Description of result

Parameter name Type Description
key String The key of cloud storage.

Request example

GET: /v1.0/users/ay156402688xxxxvoY5W/devices/6c08578d894xxxx11afye1/storage/stream/key
{}

Return example

{ "result": { "key": "6zz+T7vd6aiu7Hnd3l4m****" }, "t": 1607515452206, "success": true }

Error code

For more information, see error code.