Remotely control the playback.
BOOL NET_DVR_MatrixSetRemotePlayControl( LONG lUserID, DWORD dwDecChanNum, DWORD dwControlCode, DWORD dwInValue, DWORD *lpOutValue );
[IN] Value returned by NET_DVR_Login_V40.
[IN] Decoding channel or window No.
[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. |
[IN] Configuration parameters
[OUT] Returned value.
Return TRUE for ssuccess, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The validity of dwInValue and lpOutValue is depended on the control command, e.g., for comamnd NET_DVR_PLAYSETPOS, dwInValue should be assigned.