Skip to content

Add a playback_ready field to the "/" api response#298

Open
dubeyKartikay wants to merge 1 commit intodevgianlu:masterfrom
dubeyKartikay:add-player-ready
Open

Add a playback_ready field to the "/" api response#298
dubeyKartikay wants to merge 1 commit intodevgianlu:masterfrom
dubeyKartikay:add-player-ready

Conversation

@dubeyKartikay
Copy link

@dubeyKartikay dubeyKartikay commented Mar 23, 2026

While trying to test the /player/play endpoint. 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/play endpoint, 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_ready field that is set to true whenever its safe to call /player/play and false otherwise

fixup
@guidcruncher
Copy link

could this be emitted as a event toi?

@dubeyKartikay
Copy link
Author

Actually that's a great idea, I'll make the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants