コード例 #1
0
ファイル: CardPlayer.cs プロジェクト: ewin66/Monitor
 protected override bool PrepStop()
 {
     if ((uint)mChannelHandle != 0xFFFFFFFF)
     {
         if (DS40xxSDKWrap.StopVideoPreview(mChannelHandle) == 0)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
ファイル: CardPlayer.cs プロジェクト: ewin66/Monitor
 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);
 }