public bool SetVideoPlaySet(VideoPlaySetting videoPlaySet)
        {
            bool bolResult = false;

            CurrentVideoPlaySet = videoPlaySet;
            foreach (VideoPlayWindow v in dicWin.Values)
            {
                v.CurrentVideoPlaySet = CurrentVideoPlaySet;
            }
            return(bolResult);
        }
        public void SetPlayInfo(List <CameraInfo> lstCameraInfo, VideoPlaySetting videoPlaySet)
        {
            int iIndex = 0;

            foreach (CameraInfo cInfo in lstCameraInfo)
            {
                if (iIndex < this.dicWin.Count)
                {
                    Common.Delay_Millisecond(50);
                    this.SetPlayInfo(dicWin[iIndex], cInfo.VideoInfo, cInfo, videoPlaySet);
                }
                iIndex++;
            }
        }
예제 #3
0
 public void Init_VideoInfo(VideoInfo videoInfo, CameraInfo cameraInfo, VideoPlaySetting videoPlaySet)
 {
     if (VideoPlayState == Enum_VideoPlayState.InPlayState ||
         VideoPlayState == Enum_VideoPlayState.Connecting)
     {
         VideoClose();
     }
     CurrentVideoInfo    = videoInfo;
     intConnCount        = 0;
     CurrentCameraInfo   = cameraInfo;
     CurrentVideoPlaySet = videoPlaySet;
     if (VideoPlayState == Enum_VideoPlayState.VideoInfoNull)
     {
         VideoPlayState = Enum_VideoPlayState.VideoInfoInit;
     }
     VideoPlayCallback(new VideoPlayCallbackValue {
         evType = Enum_VideoPlayEventType.SetVideoInfo
     });
     InterfaceInit();
 }
예제 #4
0
        /// <summary>
        /// 视频播放
        /// </summary>
        public bool VideoPlay(VideoPlaySetting vps)
        {
            if (VideoPlayState == Enum_VideoPlayState.InPlayState || VideoPlayState == Enum_VideoPlayState.Connecting)
            {
                //处于播放状态,释放
                VideoClose();
            }
            intConnCount++;
            switch (CurrentVideoInfo.VideoType)
            {
            case Enum_VideoType.IPCWA:          //普顺达设备(SK835)
                IPCWA_VideoPlay();
                break;

            default:
                if (iv != null)
                {
                    iv.VideoPlay(vps);
                }
                break;
            }
            return(false);
        }
 public void SetPlayInfo(VideoPlayWindow vWindow, VideoInfo vInfo, CameraInfo cInfo, VideoPlaySetting videoPlaySet)
 {
     vWindow.Init_VideoInfo(vInfo, cInfo, videoPlaySet);
     SetToolTipInfo(vWindow);
     vWindow.VideoPlay();
 }
 public void SetPlayInfo(CameraInfo cInfo, VideoPlaySetting videoPlaySetting)
 {
     SetPlayInfo(CurrentV, cInfo.VideoInfo, cInfo, videoPlaySetting);
 }
예제 #7
0
 public void Init_VideoInfo(VideoInfo vInfo, VideoPlaySetting videoPlaySet)
 {
     Init_VideoInfo(vInfo, vInfo.Cameras.First().Value, videoPlaySet);
 }