Page 1 of 1

VLC activeX plugin and mouse click events

Posted: 14 Feb 2011 10:48
by rampaged
Hi there,
I would like to know if the VLC activeX plugin can catch mouse events and delegate them back to the browser.
I am using the VLC plugin as an RTSP player in my web application and catching the mouse click event in the video frame is crucial for me to decide if I'll use the plugin or not.
I've tried to sign the "onclick" event on the vlc object but it doesn't work.
also trying to put a transparent div above the vlc object isn't working because the VLC Element is always on top (also stated in the documentations).

is there a work around to catch mouse event inside the vlc object and delegate them back to the browser ?

Thanks,
Ram.

Re: VLC activeX plugin and mouse click events

Posted: 09 Mar 2011 14:05
by janet
I have the same problem and expect someone to give some hints.Thank you.

Hi,ram ,have you solved it?

Re: VLC activeX plugin and mouse click events

Posted: 21 Jul 2011 19:15
by ModusPwnens
I would also like to know how to do this.

Re: VLC activeX plugin and mouse click events

Posted: 22 Feb 2012 23:18
by Mark Lesha
According to RSATom (viewtopic.php?f=16&t=77515) there is currently no way to register mouse clicks on the embedded VLC window within the browser.
His fix for the addEventListener is applied to the current branch, but this method only supports the internal MediaPlayerxxx message types and not general JS events like mouse click, etc.
I have experimented with the HTML5 Canvas element, hoping it could allow interception of mouse clicks etc. and possibly transparent overlay on top of the video, but no luck yet.
If I ever come up with a solution for this, I'll be sure to post it here!

Re: VLC activeX plugin and mouse click events

Posted: 28 Mar 2012 01:17
by ModusPwnens
Why is there no way to register mouse clicks? The double-click to fullscreen feature proves that VLC can now accept mouse clicks, and the events feature proves that javascript callbacks are possible. So why can't we combine the two to accomplish this?

Re: VLC activeX plugin and mouse click events

Posted: 23 Jul 2012 03:13
by Mark Lesha
Please see the fbvlc project being developed by RSATom - this is a VLC web browser plugin based on FireBreath.
The plugin will allow overlay of transparent elements on the video and relay of mouse events to the browser too. Compatible with all browsers.
This is a new project and there are still bugs and missing code. The current version 0.0.0.5 does work and allows transparent overlay on the video. There is a memory leak issue on Windows, which should be fixed shortly (see issue #1 in the project, I suggested a fix). Mouse handler code seems to be missing at the moment and I will try to get this working shortly.
A great project - solves a lot of problems for us - there's also potential to add some advanced functionality such as video manipulation directly in the plugin code. I encourage you to try out the plugin and contribute to the development.

Mark Lesha, ANSTO