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_PlayBackControl

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_PlayBackControl(
        POINTERHANDLE lPlayHandle,
        DWORD dwControlCode,
        DWORD dwInValue,
        DWORD* lpOutValue);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_PlayBackControl(
        POINTERHANDLE playHandle,
        int dwControlCode,
        int dwInValue,
        int[] lpOutValue);

### Function Description

Control the status of video playback.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lPlayHandlein | POINTERHANDLE | Playback handle, return value of `NET_SDK_PlayBackByTime` or `NET_SDK_PlayBackByTimeEx`
dwControlCodein | DWORD | Commands for controlling video playback status, refer to `NET_SDK_PLAYCTRL_TYPE`.
dwInValuein | DWORD | The parameter to be set, for example, when setting the progress of file playback, this parameter indicates the progress value; when starting playback, this parameter indicates the file position (Byte) for breakpoint resume.
lpOutValueout | DWORD* | The parameters obtained, such as the total time of the currently playing file, this parameter is the total time obtained.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

Whether the third parameter in this interface needs to enter a value depends on the control command. In the NET_SDK_PLAYSETPOS command, this parameter indicates the playback progress. When the control command is to start playing, the value of the third parameter indicates the offset of the current file. If the value is 0, it means playing from the beginning of the file. If the value is not 0, it indicates the file position (Byte) of the breakpoint resume. The fourth parameter in this interface indicates the corresponding parameter obtained by the current control command operation.

Error Code