You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use the websocket event inactiveSession to start a timer that shuts down the system after a couple of minutes after the playback ended. Unfortunately I do not always get an inactiveSession message after playback has stopped and thus the player keeps running until someone manually switches it off or the battery runs flat.
To Reproduce
It seems that this event is not generated when the playback ends after the last song of a playlist has been played. I just observed the following:
Start to play a playlist via Spotify connect from my Laptop
Wait until the last song on the playllist has finished playing
After the last song I get the following events (excerpts) in this order:
My observation is that this last track change and metadata events change the current track back to the first track of my playlist which I did not expect to happen. However given the fact that the playback is finished and the next play command should start the playlist from the beginning this absolutely makes sense. However I do not receive an inactiveSession event afterwards. I do however receive an inactiveSession event a couple of seconds after I pause the playback.
Expected behavior
I would expect to receive an inactiveSession event when the playback has ended for whatever reasons. Alternatively, if this is the expected behaviour I would like to have another way of determining that the player is currently not playing anything. I tried to start the shutdown countdown for playbackEnded events and stop the countdown for trackChanged events but this also does not work since the last event after a playlist is finished is always a trackChanged followed by a metadataAvailable.
Screenshots/Stracktraces/Logs
N/A
Version/Commit
Version 1.6.2
The text was updated successfully, but these errors were encountered:
Describe the bug
I use the websocket event inactiveSession to start a timer that shuts down the system after a couple of minutes after the playback ended. Unfortunately I do not always get an inactiveSession message after playback has stopped and thus the player keeps running until someone manually switches it off or the battery runs flat.
To Reproduce
It seems that this event is not generated when the playback ends after the last song of a playlist has been played. I just observed the following:
My observation is that this last track change and metadata events change the current track back to the first track of my playlist which I did not expect to happen. However given the fact that the playback is finished and the next play command should start the playlist from the beginning this absolutely makes sense. However I do not receive an inactiveSession event afterwards. I do however receive an inactiveSession event a couple of seconds after I pause the playback.
Expected behavior
I would expect to receive an inactiveSession event when the playback has ended for whatever reasons. Alternatively, if this is the expected behaviour I would like to have another way of determining that the player is currently not playing anything. I tried to start the shutdown countdown for playbackEnded events and stop the countdown for trackChanged events but this also does not work since the last event after a playlist is finished is always a trackChanged followed by a metadataAvailable.
Screenshots/Stracktraces/Logs
N/A
Version/Commit
Version 1.6.2
The text was updated successfully, but these errors were encountered: