Beispiel #1
0
 private void StopPlay()
 {
     if (videoPlayer != null)
     {
         videoPlayer.Close();
         videoPlayer = null;
     }
 }
Beispiel #2
0
 private void PlayRtspVideo(string rtsp)
 {
     if (videoPlayer == null || videoPlayer.IsDisposed)
     {
         videoPlayer = new ViewRtsp(rtsp);
     }
     videoPlayer.Show();
     //  videoPlayer = f;
     videoPlayer.startPlay();
 }