Skip to content

NET_SDK_PlayBackControlSync

Interface Definition

1
2
3
4
BOOL NET_SDK_PlayBackControlSync(
    DWORD dwControlCode,
    DWORD dwInValue,
    DWORD* lpOutValue);
1
2
3
4
public static extern Boolean NET_SDK_PlayBackControlSync(
    UInt32 dwControlCode,
    UInt32 dwInValue,
    ref int lpOutValue);

Function Description

Controls the status of synchronous playback of recorded videos.

Parameter Description

Parameters Type Remark
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 second 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 second 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 third parameter in this interface indicates the corresponding parameter obtained by the current control command operation.

Error Code