browntastic
Posts: 10
Joined: Sun Oct 19, 2014 5:23 pm

omxplayer with lirc won't stop

Sun Oct 19, 2014 6:05 pm

I have set up LIRC with an Adafruit IR remote to control OMXplayer. The LIRCRC file is programmed so that specific video files are played when a number key is pressed.

Code: Select all

begin
button = KEY_1 
prog = irexec
config = omxplayer -b -o local /home/video/*.mov
end
I would also like to play/pause and stop, as well as other controls. I'm not sure if I have the right code for that, but there's another snag that needs to be addressed first: while a video is playing, no other commands from the IR remote seem to be accepted. At first I had only programmed the number keys to play videos, and if another key was pressed while a video was playing, the new video would only play once the old one was finished. After programming some other keys, I noticed that their code was only executed after videos had stopped playing as well.

I suspect that even if the correct code to play/pause stop is assigned to a key, it only runs once a video has stopped. So is there any way to have the code execute while a video is playing?

P.S. Keyboard controls are also disabled.


--Tristan

Return to “Troubleshooting”