Exemple #1
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     if (is_playinig_)
     {
         vlc_player_.Stop();
         trackBar1.Value = 0;
         timer1.Stop();
         is_playinig_ = false;
     }
 }
Exemple #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (is_playinig_)
     {
         if (trackBar1.Value == trackBar1.Maximum)
         {
             vlc_player_.Stop();
             timer1.Stop();
             //tbVideoTime.Text = "00:00:00/00:00:00";
         }
         else
         {
             trackBar1.Value  = trackBar1.Value + 1;
             tbVideoTime.Text = string.Format("{0}/{1}",
                                              GetTimeString(trackBar1.Value),
                                              GetTimeString(trackBar1.Maximum));
         }
     }
 }
Exemple #3
0
 public void Stop()
 {
     player.Stop();
 }