dyslexicjedi 0 Posted August 30, 2018 Share Posted August 30, 2018 Server: Version 3.5.2.0 running on Ubuntu Server 16.04 Situation: I'm trying to figure out the best/correct way to get all playing items via API/WebSocket. Can you provide some guidance, what I've tried is below? Previously: The websocket used to provide PlaybackStarted and PlaybackEnded messages, but apparently these don't exist anymore. Just ItemChanged which doesn't contain playstate. I've also pulled the /Sessions from API, but if you have multiple sessions open (ie two browser tabs open with different stuff playing) only one NowPlayingItem is returned in the json not both. Link to comment Share on other sites More sharing options...
Luke 37065 Posted August 30, 2018 Share Posted August 30, 2018 That is the right way. The api is currently not built to report multiple playback sessions for a single login session. It's something we'll revamp in the future. Thanks. Link to comment Share on other sites More sharing options...
iloveparks 7 Posted April 15, 2022 Share Posted April 15, 2022 Hi @Luke - is this still planned for a future update? Any ideas when that might be if so? Thanks for all your hard work. Link to comment Share on other sites More sharing options...
Luke 37065 Posted April 15, 2022 Share Posted April 15, 2022 Yes but I'm not sure yet if it's going to come in the form of expanding the api, or just keeping all browser tabs synchronized so that only one thing is playing, thus solving the problem. Link to comment Share on other sites More sharing options...
iloveparks 7 Posted April 15, 2022 Share Posted April 15, 2022 Just so I understand - in the second option would you not be able to play two different things in two different tabs? Link to comment Share on other sites More sharing options...
Luke 37065 Posted April 15, 2022 Share Posted April 15, 2022 Correct. 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