node-mpris icon indicating copy to clipboard operation
node-mpris copied to clipboard

omxplayer quits immediately

Open heisters opened this issue 9 years ago • 1 comments

Trying the play example, the command that is passed to spawn just makes omxplayer dump the help output and quits. I'm assuming that the problem is that the dbus client never gets a chance to connect.

$ DEBUG=* node play.js -p omxplayer -u file:///opt/vc/src/hello_pi/hello_video/test.h264
  info looking for dbus service +199ms
  info playerApp exit code: 0 +17ms
  info playerApp close code: 0 signal: null +1ms
  info looking for dbus service +100ms
  info looking for dbus service +110ms
  info looking for dbus service +110ms

Is there some way that you were getting it stay open and wait for a connection? Did you have a different version of omxplayer that behaved differently?

omxplayer - Commandline multimedia player for the Raspberry Pi
        Build date: Fri, 24 Oct 2014 00:48:49 +0000
        Version   : 98982df [master]
        Repository: https://github.com/popcornmix/omxplayer.git

I am able to use omxplayer's dbuscontrol.sh, but only if I start omxplayer separately and give it a video that allows me time to send the commands.

heisters avatar Jul 29 '15 22:07 heisters