예제 #1
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;
         }
     }
 }
예제 #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
        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;
            }
        }