示例#1
0
        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;
            }
        }
示例#2
0
文件: Form1.cs 项目: windygu/Video
 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;
     }
 }
示例#3
0
文件: Video.cs 项目: zodsoft/Video
 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;
         }
     }
 }
示例#4
0
 public void Play(string url)
 {
     player.PlayFile(url);
 }