/// <summary> /// 关闭所有的视频 /// </summary> public void CloseAll() { if (WestThroatVideoControl != null) { WestThroatVideoControl.Stop(); } if (WestTrackVideoControl != null) { WestTrackVideoControl.Stop(); } if (WestTrackZoomVideoControl != null) { WestTrackZoomVideoControl.Stop(); } if (EastTrackZoomVideoControl != null) { EastTrackZoomVideoControl.Stop(); } if (EastTrackVideoControl != null) { EastTrackVideoControl.Stop(); } if (EastThroatVideoControl != null) { EastThroatVideoControl.Stop(); } }
public void PlayAll(Control westThroatVideo, Control eastThroatVideo) { m_WestThroatVideo = westThroatVideo; m_EastThroatVideo = eastThroatVideo; //WestThroatVideoControl1.Play(); //WestThroatVideoControl2.Play(); WestThroatVideoControl.Play(); EastThroatVideoControl.Play(); WestTrackVideoControl.Played += PlayedWest; WestTrackVideoControl.Play(); WestTrackZoomVideoControl.TrackNum = ConfigurationManager.AppSettings["PlayTrackNum"];//1; WestTrackZoomVideoControl.Played += PlayedWestZoom; WestTrackZoomVideoControl.Play(); EastTrackZoomVideoControl.TrackNum = ConfigurationManager.AppSettings["PlayTrackNum"];//1; EastTrackZoomVideoControl.Played += PlayedEastZoom; EastTrackZoomVideoControl.Play(); EastTrackVideoControl.Played += PlayedEast; EastTrackVideoControl.Play(); //EastThroatVideoControl1.Play(); //EastThroatVideoControl2.Play(); //EastThroatVideoControl3.Play(); //EastThroatVideoControl4.Play(); }
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 + "道"; } //} }
public void PlayAll() { WestThroatVideoControl.Play(); WestTrackVideoControl.Played += PlayedWest; WestTrackVideoControl.Play(); WestTrackZoomVideoControl.TrackNum = 2; WestTrackZoomVideoControl.Played += PlayedWestZoom; WestTrackZoomVideoControl.Play(); EastTrackZoomVideoControl.TrackNum = 2; EastTrackZoomVideoControl.Played += PlayedEastZoom; EastTrackZoomVideoControl.Play(); EastTrackVideoControl.Played += PlayedEast; EastTrackVideoControl.Play(); EastThroatVideoControl.Play(); }