[Solved]LIRC in mozilla plugin?

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]LIRC in mozilla plugin?

Postby djstava » 26 Feb 2010 02:55

Can I use LIRC in mozilla plugin?
Last edited by djstava on 31 Mar 2010 11:03, edited 1 time in total.

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

Re: LIRC in mozilla plugin?

Postby khilliard » 03 Mar 2010 09:13

I play to use a remote. I'm new to lirc, still learning how to use it but it seems that you can always use one of the lirc utilities like irxevent which can send keystrokes and mouse event to any window. I hope to place javascript event handlers to filter my 'command keys' and call the associated vlc plugin command.

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

Re: LIRC in mozilla plugin?

Postby djstava » 09 Mar 2010 10:19

I tried but not succeed with MCE USB remote on ubuntu 9.10.
Lirc works well,it's OK to run mode2 and irw.

~/.lircrc
begin
prog = vlc
button = Play
config = key-play-pause
end
begin
prog = vlc
button = Pause
config = key-play-pause
end
begin
prog = vlc
button = Stop
config = key-stop
end
begin
prog = vlc
button = Skip
config = key-jump+medium
end
begin
prog = vlc
button = Replay
config = key-jump-short
end
begin
prog = vlc
button = Forward
config = key-next
end
begin
prog = vlc
button = Rewind
config = key-prev
end
begin
prog = vlc
button = Up
config = key-nav-up
end
begin
prog = vlc
button = Down
config = key-nav-down
end
begin
prog = vlc
button = Left
config = key-lav-left
end
begin
prog = vlc
button = Right
config = key-right
end
begin
prog = vlc
button = VolUp
config = key-vol-up
repeat = 1
end
begin
prog = vlc
button = VolDown
config = key-vol-down
repeat = 1
end
begin
prog = vlc
button = Mute
config = key-vol-mute
end
begin
prog = vlc
button = Pictures
config = key-audiodelay-up
end
begin
prog = vlc
button = Music
config = key-audiodelay-down
end
begin
prog = vlc
button = More
config = key-crop
end
begin
prog = vlc
button = RecTV
config = key-fullscreen
end
compiled git vlc with --enable-lirc and run

Code: Select all

sudo lircd vlc --control lirc filename VLC media player 1.1.0-git The Luggage vlc: could not connect to socket vlc: Permission denied [0xa0ed6e0] lirc interface error: lirc initialisation failed [0xa0ed6e0] main interface error: no suitable interface module
I don't know why?Any help?
djstava

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

Re: LIRC in mozilla plugin?

Postby djstava » 10 Mar 2010 03:54

Figured it out.

Code: Select all

sudo chmod 666 /var/run/lirc/lircd
Reference:
http://www.lirc.org/html/lircd.html

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

Re: LIRC in mozilla plugin?

Postby djstava » 10 Mar 2010 10:52

The method 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,Am I right?Any suggestion will be great appreciated!
djstava

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

Re: LIRC in mozilla plugin?

Postby djstava » 11 Mar 2010 02:48

Figured it out,modify the .lircrc and add

Code: Select all

begin prog = irxevent button = Yellow repeat = 0 config = Key ctrl-d CurrentWindow end
make the irxevent in running status,press the Yellow button,the firefox will receive the signal.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests