Lucy23 0 Posted June 1, 2018 Share Posted June 1, 2018 (edited) Hi everyone, I'm terribly sorry for the following stupid and mundane issue, but I just don't seem to be able to wrap my head around it Probably missing something awfully obvious... All I'm trying to do is to Pause/Unpause a running stream (in the web page) via the command line of my Linux laptop. My understanding of the API docs [0] is that I'd just need to POST a simple PlayPause request like this: curl -w "%{http_code}\n" -X POST -H "Content-Type: application/json" -d {} "http://10.0.1.28:8096/Sessions/{Id}/Playing/PlayPause/?api_key=${EMBY_KEY}" The command returns a 204, but nothing happens. What am I doing wrong? Other requests (both GET (e.g. listing the sessions) or POST (restarting the server)) do work, so I guess my code is not completely broken. However, everything towards the /Sessions/{Id}/Playing/ or /Sessions/{Id}/Command/ endpoint appears to fail. Posting a non-existing command does result in a 400 error, though. I know that's not a lot to go on, but if you could point me in the right direction, I'd be immensely grateful. Something as stupid as "The web player isn't capable of being remote controlled" maybe? I'm running a slightly outdated version (3.3.1.0) from the Debian repository. There are no error messages in the log file Thanks a lot Lucy [0] https://github.com/MediaBrowser/Emby/wiki/Remote-control Edited June 2, 2018 by Lucy23 Link to comment Share on other sites More sharing options...
Solution Luke 37116 Posted June 1, 2018 Solution Share Posted June 1, 2018 Well for starters it would be easier to trouble shoot this on the latest version. But it could be something as simple as the web app lost its web socket connection and therefore cannot receive messages from the server. 1 Link to comment Share on other sites More sharing options...
Lucy23 0 Posted June 2, 2018 Author Share Posted June 2, 2018 Hey, cheers for the quick reply. Of course, you were completely right and I've been looking in the totally wrong place. Turns out I misconfigured my reverse proxy. Not badly enough to make things not work in any obvious manner but just enough to screw with the web sockets You wouldn't believe how much time I've wasted Thank you so much again. That was exactly the pointer that I needed. Best Lucy Link to comment Share on other sites More sharing options...
Luke 37116 Posted June 2, 2018 Share Posted June 2, 2018 Thanks for the feedback. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now