Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetDownloadPos

### Interface Definition

C++C#

    1
    2
    int NET_SDK_GetDownloadPos(
        POINTERHANDLE lFileHandle);

    1
    2
    public static extern Int32 NET_SDK_GetDownloadPos(
        POINTERHANDLE lFileHandle);

### 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).

Error Code