Exemplo n.º 1
0
        public void ChangeTrack(string TrackNum)
        {
            InfoIPChannel();
            if (WestTrackVideoControl != null && WestTrackZoomVideoControl != null && EastTrackZoomVideoControl != null && EastTrackVideoControl != null)
            {
                TwoCamera tc = TV.TakeCameraConfigByTrackNum(TrackNum);
                if (TrackNum == "A09" || TrackNum == "A10" || TrackNum == "A11" || TrackNum == "A12" || TrackNum == "A13" || TrackNum == "A14" || TrackNum == "A15" || TrackNum == "A16")
                {
                    m_WestThroatVideo.Tag = "WestThroatVideo3";
                    m_EastThroatVideo.Tag = "WestThroatVideo4";
                    WestThroatVideoControl.ChangePlay(TV.WestThroat3.Channel + dwDCStartChannelNum);
                    EastThroatVideoControl.ChangePlay(TV.WestThroat4.Channel + dwDCStartChannelNum);
                }
                else if (TrackNum == "A01" || TrackNum == "A02" || TrackNum == "A03" || TrackNum == "A04" || TrackNum == "A05" || TrackNum == "A06" || TrackNum == "A07" || TrackNum == "A08")
                {
                    m_WestThroatVideo.Tag = "WestThroatVideo1";
                    m_EastThroatVideo.Tag = "WestThroatVideo2";
                    WestThroatVideoControl.ChangePlay(TV.WestThroat1.Channel + dwDCStartChannelNum);
                    EastThroatVideoControl.ChangePlay(TV.WestThroat2.Channel + dwDCStartChannelNum);
                }
                else if (TrackNum == "B09" || TrackNum == "B10" || TrackNum == "B11" || TrackNum == "B12" || TrackNum == "B13" || TrackNum == "B14" || TrackNum == "B15" || TrackNum == "B16")
                {
                    m_WestThroatVideo.Tag = "EastThroatVideo1";
                    m_EastThroatVideo.Tag = "EastThroatVideo2";
                    WestThroatVideoControl.ChangePlay(TV.EastThroat1.Channel + dwDCStartChannelNum);
                    EastThroatVideoControl.ChangePlay(TV.EastThroat2.Channel + dwDCStartChannelNum);
                }
                else if (TrackNum == "B01" || TrackNum == "B02" || TrackNum == "B03" || TrackNum == "B04" || TrackNum == "B05" || TrackNum == "B06" || TrackNum == "B07" || TrackNum == "B08")
                {
                    m_WestThroatVideo.Tag = "EastThroatVideo3";
                    m_EastThroatVideo.Tag = "EastThroatVideo4";
                    WestThroatVideoControl.ChangePlay(TV.EastThroat3.Channel + dwDCStartChannelNum);
                    EastThroatVideoControl.ChangePlay(TV.EastThroat4.Channel + dwDCStartChannelNum);
                }

                WestTrackVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);
                WestTrackZoomVideoControl.TrackNum = TrackNum;
                WestTrackZoomVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);

                EastTrackZoomVideoControl.TrackNum = TrackNum;
                EastTrackZoomVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);
                EastTrackVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);

                this.TrackNum = TrackNum + "道";
            }
            //}
        }
Exemplo n.º 2
0
        public void ChangeTrack(int TrackNum)
        {
            InfoIPChannel();
            if (WestTrackVideoControl != null && WestTrackZoomVideoControl != null && EastTrackZoomVideoControl != null && EastTrackVideoControl != null)
            {
                TwoCamera tc = TV.TakeCameraConfigByTrackNum(TrackNum);

                WestTrackVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);
                WestTrackZoomVideoControl.TrackNum = TrackNum;
                WestTrackZoomVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);

                EastTrackZoomVideoControl.TrackNum = TrackNum;
                EastTrackZoomVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);
                EastTrackVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);

                this.TrackNum = TrackNum.ToString("d2") + "道";
            }
        }
Exemplo n.º 3
0
        public void ChangeTrack(int TrackNum)
        {
            //if (isAllPlayed >= 4)
            //{
            //isAllPlayed = 0;
            InfoIPChannel();
            if (WestTrackVideoControl != null && WestTrackZoomVideoControl != null && EastTrackZoomVideoControl != null && EastTrackVideoControl != null)
            {
                TwoCamera tc = TV.TakeCameraConfigByTrackNum(TrackNum);

                WestTrackVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);
                WestTrackZoomVideoControl.TrackNum = TrackNum;
                WestTrackZoomVideoControl.ChangePlay(tc.West.Channel + dwDCStartChannelNum);

                EastTrackZoomVideoControl.TrackNum = TrackNum;
                EastTrackZoomVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);
                EastTrackVideoControl.ChangePlay(tc.East.Channel + dwDCStartChannelNum);

                this.TrackNum = trackChannelDic[TrackNum] + "道";//TrackNum.ToString("d2") + "道";
            }
            //}
        }