C# Wrapper or Control
Posted: 04 Aug 2009 22:33
by SuperTal
Any news on a C# wrapper or control for the latest version 1.0.1?
I've googled/binged everywhere and have had no luck getting a simple video to play inside of a windows form (C#)!
Would love to see a How-To article.
Re: C# Wrapper or Control
Posted: 05 Aug 2009 09:25
by DukeNukem
The .NET wrapper library contains two samples for V1.0.0 of VLC. The samples are very good as they illustrate just the basic steps to put a simple player together - suprisingly little application code required !.
To get the samples to run I had to set the project's output directory to the location of libVlc.dll so that it picks up the necessary dlls and plug-ins.
V1.0.0 library works with V1.0.1 except there is a bug to do with position updates during playback that update the position slider, causing random(ish) exceptions to be thrown; comment out that event handler and use a timer to regularly query the playback position and update the slider from the timer instead.
TTFN,
Jon