Exemplo n.º 1
0
        public void FormPlay(string path)
        {
            if (vlc_player_ == null)
            {
                vlc_player_ = new VlcPlayer(pluginPath);
            }

            if (!string.IsNullOrEmpty(path))
            {
                vlc_player_.PlayFile(path);
                trackBar1.SetRange(0, (int)vlc_player_.Duration());
                trackBar1.Value = 0;
                timer1.Start();
                is_playinig_ = true;
                this.Activate();
                button2.Text = "暂停";
            }
        }