private void btnReset_Click(object sender, EventArgs e) { if (is_playinig_) { vlc_player_.Stop(); trackBar1.Value = 0; timer1.Stop(); is_playinig_ = false; } }
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)); } } }
public void Stop() { player.Stop(); }