NET_DVR_MatrixSetRemotePlayControl

Remotely control the playback.

API Definition

BOOL NET_DVR_MatrixSetRemotePlayControl(
  LONG    lUserID,
  DWORD   dwDecChanNum,
  DWORD   dwControlCode,
  DWORD   dwInValue,
  DWORD   *lpOutValue
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

dwDecChanNum

[IN] Decoding channel or window No.

dwControlCode

[IN] Control commands, see details in the following table.

Command (dwControlCode)

Command No.

Description

NET_DVR_PLAYSTART

1

Start playback.

NET_DVR_PLAYSTOP

2

Stop playback.

NET_DVR_PLAYPAUSE

3

Pause playback.

NET_DVR_PLAYRESTART

4

Resume playback.

NET_DVR_PLAYFAST

5

Fast forward.

NET_DVR_PLAYSLOW

6

Slow forward.

NET_DVR_PLAYNORMAL

7

Playback in ×1 speed.

NET_DVR_PLAYSTARTAUDIO

9

Turn on audio.

NET_DVR_PLAYSTOPAUDIO

10

Turn off audio.

NET_DVR_PLAYSETPOS

12

Set the playback progress.

dwInValue

[IN] Configuration parameters

lpOutValue

[OUT] Returned value.

Return Values

Return TRUE for ssuccess, and return FALSE for failure.

If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks

The validity of dwInValue and lpOutValue is depended on the control command, e.g., for comamnd NET_DVR_PLAYSETPOS, dwInValue should be assigned.