Repository navigation
Clarify use of stream/start, stream/end and stream/clear messages - #83
Merged
Merged
Conversation
Clarify the conditions under which the `stream/end` message is sent.
This was referenced May 11, 2026
Expands the documentation for stream/end, stream/clear, and stream/start to make explicit that stream/end is only for actual playback termination. Track transitions require no stream commands; seeks and track jumps should use stream/clear. Also documents stream/start behavior in Playing state and adds a track jump scenario to the sequence diagram. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
stream/end messagestream/start, stream/end and stream/clear messages
Contributor
|
Thanks! We were held back only because the VPE firmware had a bug where this was broken, but stable release 26.6.0 has the proper fix and this can proceed. |
3 tasks done
maximmaxim345
added a commit
to Sendspin/aiosendspin
that referenced
this pull request
Aug 6, 2026
`SendspinGroup.start_stream()` currently ends the active Sendspin stream whenever it replaces a `PushStream`, forcing clients through an unnecessary `stream/end` and subsequent `stream/start`. When `allow_noncompliant_clients=False`, replace the transport using `stream/clear` and `stop(keep_stream=True)`, dropping buffered audio while keeping the protocol stream active. Compatibility mode retains `stream/end` for legacy clients that mishandle `stream/clear`. Related: - Sendspin/spec#83 - Sendspin/sendspin-cpp#54
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.
Clarify the conditions under which the
stream/endmessage is sent.This change makes the current implementation of Music Assistant non-compliant, but we ensure that other servers don't copy this behavior, which forces unneeded complexity on clients.