VLC activeX plugin and mouse click events

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
rampaged
New Cone
New Cone
Posts: 1
Joined: 14 Feb 2011 10:37

VLC activeX plugin and mouse click events

Postby rampaged » 14 Feb 2011 10:48

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.

janet
New Cone
New Cone
Posts: 1
Joined: 09 Mar 2011 13:11

Re: VLC activeX plugin and mouse click events

Postby janet » 09 Mar 2011 14:05

I have the same problem and expect someone to give some hints.Thank you.

Hi,ram ,have you solved it?

ModusPwnens
New Cone
New Cone
Posts: 3
Joined: 20 Jun 2011 22:00

Re: VLC activeX plugin and mouse click events

Postby ModusPwnens » 21 Jul 2011 19:15

I would also like to know how to do this.

Mark Lesha
New Cone
New Cone
Posts: 6
Joined: 22 Feb 2012 07:03

Re: VLC activeX plugin and mouse click events

Postby Mark Lesha » 22 Feb 2012 23:18

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!

ModusPwnens
New Cone
New Cone
Posts: 3
Joined: 20 Jun 2011 22:00

Re: VLC activeX plugin and mouse click events

Postby ModusPwnens » 28 Mar 2012 01:17

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?

Mark Lesha
New Cone
New Cone
Posts: 6
Joined: 22 Feb 2012 07:03

Re: VLC activeX plugin and mouse click events

Postby Mark Lesha » 23 Jul 2012 03:13

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests