Page 1 of 1
[Solved]Focus issue between vlc plugin and firefox
Posted: 04 Feb 2010 03:51
by djstava
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?
Re: Focus issue between vlc plugin and firefox
Posted: 01 Mar 2010 10:25
by djstava
When the plugin is in fullscreen mode,an instance of libvlc generated,Is that possible control the libvlc by plugin javascript APIs?
Re: Focus issue between vlc plugin and firefox
Posted: 03 Mar 2010 09:07
by khilliard
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.
Re: Focus issue between vlc plugin and firefox
Posted: 04 Mar 2010 02:43
by djstava
That's a good news for me.I'll try it as soon as possible.Thanks.