Example #1
0
 private void Terminate(object sender, EventArgs e)
 {
     Task.Run(() =>
     {
         vlcPlayer.Dispose();
     });
 }
 private void OnRelease(object obj)
 {
     try {
         _videoView.Release();
         _videoView.Dispose();
     }
     catch (Exception ex) {
     }
 }
Example #3
0
 private void Button_Click_Stop(object sender, RoutedEventArgs e)
 {
     VlcPlayer.Stop();
     VlcPlayer.Dispose();
     Close();
 }
Example #4
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     VlcPlayer.Dispose();
 }
 public void Dispose()
 {
     _vlcPlayer.Dispose();
     ApiManager.ReleaseAll();
     _isdispoed = true;
 }