dplesca / go-omxremote

browser based omxplayer remote
MIT License
16 stars 5 forks source link

Python control of webservice ? #1

Closed tomvdb closed 7 years ago

tomvdb commented 7 years ago

Hi There,

Can I use this to control the omxplayer from a remote python script ? I would essentially just send a post/get request to start and stop a video from my python script.

If so can you provide a basic example of the get/post request to stop and start a video

Thanks :)

dplesca commented 7 years ago

Hi,

I've made a few changes today to simplify the URL scheme, so I need to push a new release soon (probably in a few hours). I've written a little bit of documentation for the new urls http api:

This application exposes a simple, minimal HTTP API for interfacing with the player. The exposed endpoints are:

One important note is that the start call does not return until the playback is stopped, so your request will probably timeout.

tomvdb commented 7 years ago

that is perfect thanks, has the executable been updated?

Thanks :)

dplesca commented 7 years ago

It is now :)