NET_DVR_MatrixGetPassiveDecodeStatus

Get the passive decoding status of the decoder.

API Definition

LONG NET_DVR_MatrixGetPassiveDecodeStatus(
  LONG      lPassiveHandle
);

Parameters

lPassiveHandle

[IN] Passive decoding handle, which is returned by NET_DVR_MatrixStartPassiveDecode.

Return Values

Return -1 for failure, and return the following values for other statuses: 1 (sent), 2 (sending paused), 3 (sending resumed), 4 (error), 5 (heartbeat information).

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

Remarks

If you immediately call this API after calling NET_DVR_MatrixStartPassiveDecode to start passive decoding, failure may occur as the implement of function costs time, and the corresponding error name is "NET_DVR_ORDER_ERROR", you can try again later.