Get the download progress of the device video
After a user initiates a media download, the user returns a unique stream ID and waits for the device to upload data. The user needs to invoke the video download interface to get the download progress. It is recommended to get the download progress once every 1 to 3 seconds
API info
Url: /web_api/v1/media/record_download_progress
Method: GET
Content-Type:x-www-form-urlencoded
Request parameter
field | type | required | desc |
---|---|---|---|
streamID | string | Yes | Stream ID |
deviceNo | string | Yes | Device number |
Response Data(type:integer)
Returns a download value
Example
Request example
url
http://localhost:8080/web_api/v1/media/record_download_progress?streamID=7297420547124627210&deviceNo=13000000005&_t=1699063123861
http://localhost:8080/web_api/v1/media/record_download_progress?streamID=7297420547124627210&deviceNo=13000000005&_t=1699063123861
Response sample
json
{
"hdr":{
"code":200,
"message":"success"
},
"data":22
}
{
"hdr":{
"code":200,
"message":"success"
},
"data":22
}
Video download to local
When the fetch reaches 100, call this interface to download to the local, this interface does not need to fill the token
Interface information
Request address: /web_api/v1/media/record_file_download
Method: GET
Content-Type:x-www-form-urlencoded
Request parameter
fields | type | Requiredquired | Instructionsstructions |
---|---|---|---|
streamID | string | Yes | Stream ID |
fileName | string | Yes | File name, defined by yourself |
Response Data
If the browser is automatically downloaded to the local
Example
Request example
url
http://localhost:8080/web_api/v1/media/record_file_download?streamID=7297420547124627210&fileName=test.mp4&_t=1699063123861
http://localhost:8080/web_api/v1/media/record_file_download?streamID=7297420547124627210&fileName=test.mp4&_t=1699063123861
Response sample
file
File stream
File stream