The method on
http://blog.chinaunix.net/u3/93196/showart.php?id=2191032 doesn't work when vlc embed in firefox。How can I make the
firefox response while I press some remote key?I let the javascript
function to react when some key pressed in html page(for
example,fullscreen),so i think if i can send the key value to the
firefox,then i can control the vlc plugin.
irxevent is a program to send button clicks and key presses
to X
applications triggered by a LIRC driven remote control. You can control
your
favorite player or your TV tuner program or any other X
application
that responds to keyboard or mouse input.You can check the file lirc-0.8.6/doc/irxevent.keys for further infomation.
.lircrc
begin
prog = irxevent
button = Play
config = Key A CurrentWindow
end
begin
prog = irxevent
button = Pause
config = Key B CurrentWindow
end
begin
prog = irxevent
button = Stop
config = Key C CurrentWindow
end
begin
prog = irxevent
button = Up
config = Key L CurrentWindow
end
begin
prog = irxevent
button = Down
config = Key M CurrentWindow
end
begin
prog = irxevent
button = ChanUp
config = Key N CurrentWindow
end
begin
prog = irxevent
button = ChanDown
config = Key O CurrentWindow
end
begin
prog = irxevent
button = Left
config = Key I CurrentWindow
end
begin
prog = irxevent
button = Right
config = Key H CurrentWindow
end
begin
prog = irxevent
button = VolUp
config = Key E CurrentWindow
end
begin
prog = irxevent
button = VolDown
config = Key F CurrentWindow
end
begin
prog = irxevent
button = Mute
config = Key G CurrentWindow
end
begin
prog = irxevent
button = OK
config = Key D CurrentWindow
end
begin
prog = irxevent
button = Forward
config = Key J CurrentWindow
end
begin
prog = irxevent
button = Rewind
config = Key K CurrentWindow
end
|
Note:
The Key in .lircrc is no diff from its lower case or upper case.Its keycode is equal to lower case.
Make sure the program irxevent in running status,with javascipt that you can control the vlc player embedded in firefox.
Enjoy it!
djstava
References:
1、
2、
3、
http://wiki.videolan.org/Documentation:WebPlugin#Playlist_object
阅读(1659) | 评论(0) | 转发(0) |