Page 1 of 1

VLC .NET Detecting movie end

Posted: 17 Jul 2007 11:08
by mbenson
Hi,

I have downloaded the .NET User Control for VLC (from http://wiki.videolan.org/.Net_Interface_to_VLC), I'm having trouble detecting when the movie has completed as there does not appear to be an event raised, similar to the PlayStateChanged fired from the Windows Media Player ActiveX control.

Any help would be much appreciated.

Marc

Re: VLC .NET Detecting movie end

Posted: 26 Jul 2007 13:58
by knuckels23
Hi Marc,

I am also working on the VLC .Net Interface.

I guess, the available enum are these...

public enum PlayerState
{
None = 0,
Playing = 1,
Paused = 2,
}

So i belive, the best that you use is VLanControl.PlayerState.Playing :D
Hey, I have a problem too, :oops:
I have also created the DLL,
After adding in the Tool Box, If I do drag and drop it in the IDE and set the neccessary code, I am not getting any output( I am trying to run a mp4 file),

The code that i am trying to use is

VLanControl.VlcUserControl vlc = new VLanControl.VlcUserControl();
vlc.Parent = this;
vlc.Dock = DockStyle.Fill;
this.vlc.AddAndPlay(@"D:\testMp4\sample.mp4", "");

I am adding this code in the Form_Load...

I am missing any thing or am i doing any thing wrong ?

Thanks in advance for any help :D

cheers
Paul

Re: VLC .NET Detecting movie end

Posted: 16 Aug 2007 12:09
by harirulez
Hi Paul,

I am facing the same problem that you had mentioned.
Did you find a way to get it working?
It would be great if you could let me know the solution.

Thanks and regards,
Hari
(nayan@iflect.com)