Ejemplo n.º 1
0
        protected override bool PrepPlay()
        {
            if ((uint)mChannelHandle != 0xFFFFFFFF)
            {
                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);
                }
            }
            return(false);
        }
Ejemplo n.º 2
0
 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);
 }