Page 1 of 1

Proble in C# using VLC

Posted: 15 Oct 2008 03:56
by hailang525
Hello, everyone.
I met some problems when I use C# in Visual Studio. I add the VLC-activeX(AXVLC.DLL) control to C# problem to use VLC play video.
Firstly, I made a C/S struture. At client , I send command made sever play video.
I use the function addtarget(string,option,...) to add file path , and then play(), It can play, but it always remember the contest last time I sent and then play this time which I sent the command. I have use playclearlist() to remove list, but it still remember the video last time before. I really don not know why.

Secondly, I add VLC screen into C# windows application form, it can play at a form which I create. But it played a few seconds and then show the blue screen, my computer completely died....

I am really appreciated someone can help me.

Re: Proble in C# using VLC

Posted: 22 Jan 2009 21:45
by mnenn
Diddo:

C# code snippet:

Code: Select all

var options = new object[] { ":dshow-vdev=Euresys PICOLO PRO2 sn/78109 - VID1", }; _axVLCPlugin21.playlist.add("dshow:// ", "C-ARM", options); _axVLCPlugin21.playlist.playItem(0); if(!_axVLCPlugin21.playlist.isPlaying) { MessageBox.Show("Video not active"); } ... while(_axVLCPlugin21.playlist.isPlaying) { _axVLCPlugin21.AutoPlay = false; _axVLCPlugin21.playlist.stop(); _axVLCPlugin21.playlist.clear(); }