how to play 1 link youtube?
Posted: 18 Jul 2015 05:59
Here is my code but it does not work
thanks
Code: Select all
string[] args = new string[] {
"-I", "dummy", "--ignore-config",
@"--plugin-path=C:\Program Files (x86)\VideoLAN\VLC\plugins",
"--vout-filter=deinterlace", "--deinterlace-mode=blend"
};
instance = new VlcInstance(args);
player = null;
using (VlcMedia media = new VlcMedia(instance, "https://www.youtube.com/watch?v=xCF19cBWb0I"))
{
if (player != null) player.Dispose();
player = new VlcMediaPlayer(media);
}
player.Drawable = panel1.Handle;
player.Play();