void Play(string path) { //OpenFileDialog ofd = new OpenFileDialog(); //if (ofd.ShowDialog() == DialogResult.OK) { //vlc_player_.PlayFile(ofd.FileName);comboBox_fileselect.SelectedItem.ToString() { vlc_player_.PlayFile(path); trackBar1.SetRange(0, (int)vlc_player_.Duration()); trackBar1.Value = 0; timer1.Start(); is_playinig_ = true; } } }
void Play() { //OpenFileDialog ofd = new OpenFileDialog(); //if (ofd.ShowDialog() == DialogResult.OK) { //vlc_player_.PlayFile(ofd.FileName); vlc_player_.PlayFile(label_fileselect.Text); trackBar1.SetRange(0, (int)vlc_player_.Duration()); trackBar1.Value = 0; timer1.Start(); is_playinig_ = true; } }
private void btnStart_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { vlc_player_.PlayFile(ofd.FileName); trackBar1.SetRange(0, (int)vlc_player_.Duration()); trackBar1.Value = 0; timer1.Start(); is_playinig_ = true; } }