Esempio n. 1
0
 private void FormVideoAnalyzerPlayerWmp_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         timerVideo.Enabled = false;
         listaVideos.Items.Clear();
         txtDiretorio.Text           = string.Empty;
         trackBarVideoProgress.Value = 0;
         tracVolume.Value            = 5;
         this.lblComportamento.Text  = string.Empty;
         lblTempoVideo.Text          = "00:00:00 / 00:00:00";
         video.Stop();
         video.Dispose();
     }
     catch
     {
     }
 }
 /// <summary>
 /// Dispose of the video if not null
 /// </summary>
 /// <param name="video"></param>
 public void DisposeVideo(ref Microsoft.DirectX.AudioVideoPlayback.Video video)
 {
     if (video != null && video.Disposed == false)
     {
         if (video.Playing == true)
         {
             video.Stop();
         }
         video.Dispose();
         video = null;
     }
 }
Esempio n. 3
0
        public void Stop()
        {
            if (video == null)
            {
                return;
            }

            video.Stop();
            timer.Stop();
            TimerTicked(this, null);

            playBtn.Text = "\x23F5";
        }