private void OnPlayButtonClick(object sender, RoutedEventArgs e) { try { ROVStream.Play(); //myControl.MediaPlayer.Play(new Uri("rtsp://169.254.250.128:8554/")); } catch (Exception ex) { MessageBoxResult result = MessageBox.Show(ex.Message, "Error", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation); } }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { ROVStream.Stop(); }