tags:

views:

22

answers:

1

Hello, I'm using vlc plugin into C# Windows form application. It works fine with all media type but it can't play youtube videos through the plugin also it can be played in the main player itself. I'm using the following code :

    axVLCPlugin2.playlist.add("http://www.youtube.com/watch?v=BxPtmLmqdXU");
    axVLCPlugin2.playlist.play();

How the could should be to be able to play youtube videos ?

+1  A: 

You are specifying the URL of the youtube web page, not of the video itself. You need to get the URL of the video itself and specify that. There are many web pages that allow you to extract the URL of the video, given a youtube page URL, like:

Get link to actual video

Michael Goldshteyn
EgyEast