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
{{ message }}
Repository navigation
player@v1: consolidate supported_commands into client/state and give the timing/buffering server rules their own section #142
The file roles/player/v1.md has two structural problems. They are in the same file, but you can merge them separately.
1. Two messages contain supported_commands
client/hello contains 'volume' and 'mute' in the object player@v1_support. client/state contains 'set_static_delay' in the object player.
Thus server/command must refer to two locations. It says that the command must be in supported_commands "from player@v1_supportor from client/state".
The rules for volume? and muted? in client/state also refer to the client/hello anchor.
Change: move the full list into the object player in client/state.
This location is correct, because the client can change the list. The spec already permits a change to supported_commands when the audio output changes. But today the client can change only 'set_static_delay'.
The change also adds a function. A client can then remove volume control during a session. @maximmaxim345 gives this example:
The client plays through a built-in speaker, and it supports volume.
The user connects an amplifier through line-out or S/PDIF. This output has no volume control.
The client sends a new supported_commands list. The client does not disconnect.
No procedure needs the list before the first client/state. The server must not send binary data before this message. The player is not available before this message. The values for volume and mute are also in this message.
The controller calculates the group volume. This calculation needs the flags and the values, and client/state supplies the values.
Make these two related changes:
Make supported_commands mandatory in the first client/state. The delta rules permit its omission later.
Add one sentence about the controller. The server must calculate the controller supported_commands again when the support of a player changes.
This change breaks compatibility. The field moves to a different message.
2. The "Server behavior" text is below the incorrect title
The text is below the title for the client/hello support object. But it describes required_lead_time_ms and min_buffer_ms. These fields are in client/state.
Thus client/state refers back to the client/hello anchor for its own fields. The Playback Synchronization section does the same.
Change: move the text to a new section, for example "Server timing and buffering behavior". Move the note before it at the same time.
Keep the new section independent. Do not put it in the client/state section. The text also gives rules for buffer_capacity, and this field stays in client/hello.
Two links change. The links to supported_formats continue to operate, because the client/hello title does not change.
This change is editorial. It does not affect the wire.
Especially 1. sounds like a nice improvement, haven't though about it previously since I was aiming to avoid breaking changes, but that will also allow in clients to disable volume control on the fly, like:
It plays on a built in speaker (volume is supported)
User plugs in a amp through line out or S/PDIF (In this example without hardware/software volume support)
The client updates its supported_commands list, no need to reconnect.
Activity
maximmaxim345 commentedon Aug 18, 2026
Especially 1. sounds like a nice improvement, haven't though about it previously since I was aiming to avoid breaking changes, but that will also allow in clients to disable volume control on the fly, like:
maximmaxim345 commentedon Aug 19, 2026
This idea is good.
balloob commentedon Aug 19, 2026
Move all fields that can change dynamically from support objects to the state. Audit all support objects.
refactor: rename static_delay_ms to output_delay_ms (#164)
docs: record the editorial rules in CONTRIBUTING.md (#165)
Allow players to change `supported_commands` mid-session (#177)