Add a playback_ready field to the "/" api response#298
Merged
devgianlu merged 3 commits intodevgianlu:masterfrom Apr 12, 2026
Merged
Add a playback_ready field to the "/" api response#298devgianlu merged 3 commits intodevgianlu:masterfrom
devgianlu merged 3 commits intodevgianlu:masterfrom
Conversation
|
could this be emitted as a event toi? |
Contributor
Author
|
Actually that's a great idea, I'll make the changes |
Contributor
Author
|
Actually, after adding this, and testing for a bit.
This kinda makes things unreliable. @devgianlu what are your thoughts on this? |
devgianlu
requested changes
Apr 5, 2026
Owner
devgianlu
left a comment
There was a problem hiding this comment.
With the suggested changes the PR should be smaller.
The WS event can stay, it doesn't hurt and can still be useful if the initial connect state PUT takes a while. You can always check via the API and then wait for the event to avoid polling.
devgianlu
approved these changes
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While trying to test the
/player/playendpoint. I ran into a bug where the app would say that "its up" ( GET "/" and "/status" would return 200) but when i hit the/player/playendpoint, the playback would fail.sometimes the connection id was not set, sometimes the volume sync hadn't happened, which led to the volume of the track changing mid playback.
So i had to expose a
playback_readyfield that is set totruewhenever its safe to call/player/playandfalseotherwise