Hello
I'm trying to play youtube videos using AxAXVLC.AxVLCPlugin2, but it doesn't start playing. Does the controls support playing youtube videos without saving the video first?
I hope someone can help me.
Thanks!
shivan
Code: Select all
//I couldn't find a play() Method like in the AxVLCPlugin1 Control:
//AxVLCPlugin1.play();
Code: Select all
var media = new LocationMedia(@"http://www.youtube.com/watch?v=WAjt5wPJVqM");
media.StateChanged +=
delegate(MediaBase s, VlcEventArgs<States> args)
{
if (args.Data == States.Ended)
{
var subItems = media.SubItems;
if (subItems.Count > 0)
{
myVlcControl.Play(subItems[0]);
}
}
};
myVlcControl.Media = media;
myVlcControl.Play();
Code: Select all
var media = new LocationMedia(@"http://www.youtube.com/watch?v=WAjt5wPJVqM");
media.MediaSubItemAdded +=
delegate(MediaBase s, VlcEventArgs<MediaBase> args)
{
myVlcControl.Media = args.Data;
myVlcControl.Play();
};
myVlcControl.Media = media;
myVlcControl.Play();
Return to “Development around libVLC”
Users browsing this forum: No registered users and 6 guests