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