protected override bool PrepStop() { if ((uint)mChannelHandle != 0xFFFFFFFF) { if (DS40xxSDKWrap.StopVideoPreview(mChannelHandle) == 0) { return(true); } } return(false); }
public bool RefreshPlayArea() { if (IsOpen) { if (IsPlay) { if (DS40xxSDKWrap.StopVideoPreview(mChannelHandle) == 0) { win32.RECT rect = new win32.RECT(); win32.GetClientRect(HWnd, ref rect); if (DS40xxSDKWrap.StartVideoPreview(mChannelHandle, HWnd, ref rect, true, TypeVideoFormat.vdfRGB24, mFps) == 0) { return(true); } else { Stop(); } } return(false); } } return(true); }