コード例 #1
0
        private void VLC2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var a = new VLCPlayer();

            a.Text = new Uri(infoFileURL).LocalPath;
            a.axVLCPlugin21.playlist.add(infoFileURL);
            a.axVLCPlugin21.playlist.play();
            a.Show();
        }
コード例 #2
0
ファイル: FileDetails.cs プロジェクト: MyForking/opentheatre
 private void VLC2ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var a = new VLCPlayer {
             Text = new Uri(currentFile.URL).LocalPath
         };
         a.axVLCPlugin21.playlist.add(currentFile.URL);
         a.axVLCPlugin21.playlist.play();
         a.Show();
     }
     catch { MessageBox.Show("Built-in player was unable to load. We are aware there are some issues with this function and are working to resolve this. For the time being, please install the VLC player on your computer and choose 'Play Media' > 'VLC' "); }
 }