[Solved]Focus issue between vlc plugin and firefox

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

[Solved]Focus issue between vlc plugin and firefox

Postby djstava » 04 Feb 2010 03:51

I add some keyboard shortcut to control vlc plugin in firefox in the html web page.And if I make the embeded player fullscreen,any other keyshortcut isn't response.That means I cannot make the embeded player STOP、PAUSE、SEEK etc in fullscreen mode.
How can i solve this problem?
Last edited by djstava on 31 Mar 2010 11:04, edited 1 time in total.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Focus issue between vlc plugin and firefox

Postby djstava » 01 Mar 2010 10:25

When the plugin is in fullscreen mode,an instance of libvlc generated,Is that possible control the libvlc by plugin javascript APIs?

khilliard
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Apr 2007 16:59

Re: Focus issue between vlc plugin and firefox

Postby khilliard » 03 Mar 2010 09:07

Maybe instead of going 'fullscreen' you can set the width and height for the plugin display area to be less than fullscreen. If your TV, for example, is 720x576 then you could set width=720 and height=500. Then you would have screen space to place html buttons/links with javascript event handlers to support vlc stop/pause/etc, either above the video display or below it.

I noticed the same problem when going fullscreen. When you go full screen there are actually 2 windows: your original window (hosting the browser/html web page) and the 'fullscreen' window displaying your video. You can see this (assuming that you're running ubuntu linux) by pressing Alt-tab key to cycle through all the windows. You will see a window hosting your fullscreen video playback, another window displaying the browser/html web page and any other windows on your X-windows. In this scenario the window hosting the html page cannot 'hear' any keyboard/mouse events as it does not have keyboard focus, being hidden by the 'fullscreen' window.

As I plan to use a remote control I have a second option: sending keyboard/mouse events to the window hosting the browser (and the html page containing plug + javascript). With lirc I can direct keys/mouse event to any window. In my case I will send them to the (hidden) browser window. My html will contain event handler to respond to these keys and call the right vlc plugin command (e.g., vlc.playlist.pause()).

Hope this helps.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Focus issue between vlc plugin and firefox

Postby djstava » 04 Mar 2010 02:43

That's a good news for me.I'll try it as soon as possible.Thanks.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests