Page 1 of 1

Question about Marx C# Wrapper

Posted: 03 Feb 2009 00:07
by ChrisHolmesOnline
I am using the Marx wrapper in a current project and I've run into a small snag.

The control doesn't respond to mouse clicks. There are no events on the Marx_libvlc_media_player that you can hook into to handle things like mouse clicks. The control automatically toggles between fullscreen and default size when you double-click on the control, but this appears to be handled at a much deeper level in the VLC library itself.

Since I've got the source code, I tried having the Marx_libvlc_media_player inherit from the .NET Control class and wiring up to the mouse click there, but it never even gets fired. I'm wondering if there is a remedy for this behavior? I'd like to have a bit more control over what happens when a user clicks on the viewer.

Re: Question about Marx C# Wrapper

Posted: 03 Feb 2009 08:33
by elund
You can wrap the library in a user control as shown in the TestVLC example by nicopam:
viewtopic.php?f=32&t=47385&p=167172&hil ... lc#p167172

Best regards, Elund