NET_DVR_MatrixGetRemotePlayStatus

Get playback status.

API Definition

BOOL NET_DVR_MatrixGetRemotePlayStatus(
  LONG                                     lUserID, 
  DWORD                                    dwDecChanNum, 
  LPNET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS  lpOuter
)

Parameters

lUserID

[IN] User ID, which is returned by NET_DVR_Login_V40.

dwDecChanNum

[IN] Decoding channel.

lpOuter

[OUT] Playback status, see details in NET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS.

Return Value

Return TRUE for success and FALSE for failure. If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks

  • You can get playback status and control playback after connecting multi-channel decoder with the front-end device and starting playback by file name or by time. If you play back by time, you cannot control the playback progress.

  • Delay exists since the playback command is executed by forwarding stream. Therefore, it's better not to call this API too frequently, and you should take network status into consideration.

  • When you play back by time, you can only get the playback status of a single clip instead of the whole video of the time period. You can check whether the playback has finished by the member dwCurDataType in the structure NET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS.