/** Listens for the {@link agora_gaming_rtc.VideoRawDataManager.OnCaptureVideoFrameHandler OnCaptureVideoFrameHandler} delegate. * * @param action The implementation of the `OnCaptureVideoFrameHandler` delegate. * * @return * - 0: Success. * - < 0: Failure. */ public override int SetOnCaptureVideoFrameCallback(OnCaptureVideoFrameHandler action) { if (_irtcEngine == null) { return((int)ERROR_CODE.ERROR_NOT_INIT_ENGINE); } if (action == null) { OnCaptureVideoFrame = null; IRtcEngineNative.initEventOnCaptureVideoFrame(null); } else { OnCaptureVideoFrame = action; IRtcEngineNative.initEventOnCaptureVideoFrame(OnCaptureVideoFrameCallback); } return((int)ERROR_CODE.ERROR_OK); }