Ejemplo n.º 1
0
 public void Stop()
 {
     if (checkInit())
     {
         if (isVideo)
         {
             _video.Stop();
         }
         else
         {
             _audio.Stop();
         }
     }
 }
Ejemplo n.º 2
0
 private void button6_Click(object sender, EventArgs e)
 {
     if (video.State != StateFlags.Stopped)
     {
         video.Stop();
     }
 }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (openAviDialog.ShowDialog() == DialogResult.OK)
            {
                int width  = panel1.Width;
                int height = panel1.Height;
                video       = new Microsoft.DirectX.AudioVideoPlayback.Video(openAviDialog.FileName);
                video.Owner = panel1;
                video.Stop();

                panel1.Size = new Size(width, height);
            }
        }
Ejemplo n.º 4
0
 private void audio_stop_Click(object sender, EventArgs e)
 {
     if (vid != null)
     {
         audio_play.Enabled  = true;
         audio_play.Visible  = true;
         audio_stop.Enabled  = false;
         audio_stop.Visible  = false;
         audio_pause.Enabled = true;
         audio_pause.Visible = true;
         vid.Stop();
     }
 }
Ejemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            if(openAviDialog.ShowDialog() == DialogResult.OK)
            {
                int width = panel1.Width;
                int height = panel1.Height;
                video = new Microsoft.DirectX.AudioVideoPlayback.Video(openAviDialog.FileName);
                video.Owner = panel1;
                video.Stop();

                panel1.Size = new Size(width,height);
            }
        }
Ejemplo n.º 6
0
 private void button2_Click(object sender, EventArgs e)
 {
     video.Stop();
 }