NET_DVR_MatrixSetDecChanEnable

Set the decoding status of the current channel or window.

API Definition

BOOL NET_DVR_MatrixSetDecChanEnable(
  LONG    lUserID,
  DWORD   dwDecChanNum,
  DWORD   dwEnable
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

dwDecChanNum

[IN] Decoding channel No. or window No.

dwEnable

[IN] 0-Disable, 1-Enable

Return Values

Return TRUE for success, and return FALSE for failure.

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

Remarks

If the parameter dwEnable is set to 0, the decoding of the current window will be paused even the window is in dynamic or auto-switch decoding mode.