brainfoolong / omxwebgui-v2

Web GUI for OMX Player on a Raspberry Pi
https://www.youtube.com/watch?v=4hqOzdt6KfQ
MIT License
53 stars 17 forks source link

Problems if you don't stop a video before selecting a new one #4

Closed robmint closed 7 years ago

robmint commented 7 years ago

If you play a video, then select another video, the UI correctly displays the name of the new video and says "Playing". But the old video continues to play.

Perhaps the UI needs to send the "Stop" command to omxplayer before starting to play a new video. If you do this manually it works OK.

brainfoolong commented 7 years ago

I guess you using this all with nginx? There a problems when you using this gui not in the recommended way via the php command line. As you can see in the following file, on every video start, it will already kill all omxplayer instances. The problem you describe doesn't happen on all my tested instances.

https://github.com/brainfoolong/omxwebgui-v2/blob/master/omx-start.sh