Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2124550
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-03-11 13:33:09

    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
阅读(1662) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~