NET_SDK_GetDownloadPos¶
Interface Definition¶
1 2 | |
1 2 | |
Function Description¶
Get the progress of downloading the current video file.
Parameter Description¶
| Parameters | Type | Remark |
|---|---|---|
| lFileHandlein | POINTERHANDLE | Download handle, return value of NET_SDK_GetFileByTime, NET_SDK_GetFileByTimeEx, NET_SDK_GetFileByTimeExV2. |
Return Value¶
-
type:int
-
remark:-1 indicates failure; 0 to 100 indicates the progress of the download; 100 indicates the end of the download; the normal range is 0-100. If 200 is returned, it indicates a network abnormality.
Remarks¶
This interface is used to obtain the download progress when downloading a video file by file name. The download progress is determined by time, progress = (current download time - file start time) / (file end time - file start time).