MulziSAW 0 Posted September 5, 2019 Share Posted September 5, 2019 Hello! I want to send a curl command to pause playback on my SHIELD. The command looks like this: curl -w "%{http_code}\n" -X POST -H "Content-Type: application/json" -d {} "https://server.address:443/Sessions/$Id/Playing/Pause/?api_key=$apikey" After sending this command the playback does actually pause, but when I send the command a second time playback starts again. So this command behaves like PlayPause and not Pause. I tried the same with my tablett where it worked like it should. Couldn't find any usefull information in the log file, but I can upload the log of course when needed. And one last thing: I'm running emby behind an reverse nginx proxy, just in case this is relevant. Hope that someone has an idea how to fix this! Thanks, Mulzi Link to comment Share on other sites More sharing options...
Luke 36887 Posted September 8, 2019 Share Posted September 8, 2019 Hi, it's probably just because internally each app calls the .pause() method on it's audio or video player, and in most cases this generally results in a toggle rather than setting a specific state. I guess we could look at changing it, it's just not something that's ever come up before. Thanks. Link to comment Share on other sites More sharing options...
MulziSAW 0 Posted September 9, 2019 Author Share Posted September 9, 2019 Hi Luke, thanks for your reply! Indeed, would be cool if this behavior could be changed. Do you know of an elegant workaround? Is checking "IsPaused" somehow useful? But I think it is also "true" if there is nothing played at all... Thanks for your help! Link to comment Share on other sites More sharing options...
Luke 36887 Posted September 9, 2019 Share Posted September 9, 2019 Yea for now I think you'll just have to check the available data to make a decision on your own of whether or not to send the command. 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