Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic control #287

Open
rocketinventor opened this issue Jun 14, 2017 · 1 comment
Open

Programmatic control #287

rocketinventor opened this issue Jun 14, 2017 · 1 comment

Comments

@rocketinventor
Copy link

rocketinventor commented Jun 14, 2017

I would like to be able to control omxplayer out of frame. In other words, I want to be able to have omxplayer running in one process and to be able to control it from another. I am trying to make a custom interface and I want to be a able to control it from a web-server. I imagine that there is already some sort of way to do this with a command line arg? Built in API? Maybe with a named pipe? I'd like to have something non-blocking.

In practice this could look like this:
An instance of "Internet music player" is opened from the command line (perhaps via SSH) and starts an instance omxplayer (in the "background") to play the track that was selected. While omxplayer is working in the background, "Internet music player" is still showing a playlist and handling key-presses/commands. As long as omxplayer is playing it will continue to post updates on track playback/buffering/metadata/errors (either directly to the program that invoked it or to the named pipe.

Any help would be appreciated,
Thanks!

@matthijskooijman
Copy link

It seems omxplayer can be controlled through dbus. See for example https://github.com/popcornmix/omxplayer/blob/master/dbuscontrol.sh and https://github.com/willprice/python-omxplayer-wrapper

I think with that, this issue can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants