VLC player does not play video

I added the VLC plugin from the COM component, dragged it into my form, added two buttons to the form ("Play" and "Stop") and wrote the following code:

private void Form1_Load(object sender, EventArgs e) { axVLC.AutoPlay = false; axVLC.playlist.add(@"C:\Users\Hanif\Documents\Visual Studio 2010\Projects\Education Visualization\Vlc\Resources\Video1.wmv"); } private void btnPlay_Click(object sender, EventArgs e) { axVLC.playlist.play(); } private void btnStop_Click(object sender, EventArgs e) { axVLC.playlist.stop(); } 

But when I click "Play", nothing happens.

What am I doing wrong?

+7
c # winforms vlc
source share
2 answers

Is a VLC plugin of type AxAXVLC.AxVLCPlugin2 ? If yes, try the following:

1) try playing the video in other formats, for example ..avi, .mkv, etc.

2) try adding file:/// to the top of the URI:

 @"file:///C:\Users\Hanif\Documents\Visual Studio 2010\Projects\Education Visualization\Vlc\Resources\Video1.wmv" 

3) try adding 2 more arguments to the add command:

 axVLC.playlist.add(@"C:\Users\Hanif\Documents\Visual Studio 2010\Projects\Education Visualization\Vlc\Resources\Video1.wmv", null, null); 
+8
source share

Try the following:

 private void btnPlay_Click(object sender, EventArgs e) { axVLC.playlist.playNext(); } 
0
source share

All Articles