Page 1 of 1

ActiveX Plugin v1 and v2 not working

Posted: 05 Mar 2012 12:26
by DannyD
Hi, I'm trying to add the ActiveX plugin to my win Forms application for c#. I have VLC Player 2.0.0 installed and have added the plugin onto my Form.
My Code for a button push to play a video is:

V1

Code: Select all

private void button2_Click(object sender, EventArgs e) { axVLCPlugin1.addTarget("C:\\apple.avi", null, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0); axVLCPlugin1.play(); }
V2

Code: Select all

private void button3_Click(object sender, EventArgs e) { axVLCPlugin21.playlist.add(@"c:\apple.avi", "apple"," " ); axVLCPlugin21.playlist.play(); }
Both plugins remain the same, a black screen with the VLC logo in the middle. I am obviously missing something but cannot find out what?

Re: ActiveX Plugin v1 and v2 not working

Posted: 05 Mar 2012 12:59
by chris2000
newer versions of VLC needs "file:///" in beginning ("file:///C:\apple.avi")

Re: ActiveX Plugin v1 and v2 not working

Posted: 05 Mar 2012 13:12
by DannyD
chirs2000!!!!!

You are a legend! Thx :D both plugins work perfect now.

Funny how I missed that. I've looked on the net the last few hours and haven't read anywhere about the "file:///"
Can you maybe direct me to a good site/document that I can familirize myself better with this plugin?

Thaks again for your help

Re: ActiveX Plugin v1 and v2 not working

Posted: 15 Mar 2012 23:53
by tnetrider
Hi, I just started using Visual C# and thanks to this thread, was able to successfully embed the ActiveX V1 and V2 plugin to a WPF app... However, I would like to capture the events generated by the VLC plugin. How would I go about doing that? Thanks in advance.

Re: ActiveX Plugin v1 and v2 not working

Posted: 28 May 2012 11:18
by gokuhs
Hi! I had the same problem!! Thanks!!

Re: ActiveX Plugin v1 and v2 not working

Posted: 25 Jun 2012 13:24
by itataki
Hi. Thanks. It's working now. I want to add: We have in germanspeaking regions letters like ä ö ü. They are not working in this command's filepath. (But you got [space] working).

Re: ActiveX Plugin v1 and v2 not working

Posted: 06 May 2015 16:59
by ozi48
Hi,i started video but how can i create mp4 file and save video which has rtsp ?


My code:

Code: Select all

string[] options = { ":sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=file,mux=mov,url=D:\\test.mp4}}" }; axVLCPlugin1.addTarget("rtsp://*****/profile2/media.smp", options, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, 0); axVLCPlugin1.play();

I tried axVLCPlugin21 and axVLCPlugin1 but they did not work.
Help me =)