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