Skip to content

player@v1: consolidate supported_commands into client/state and give the timing/buffering server rules their own section #142

Closed

Description

@balloob

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_support or 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.

Activity

  1. maximmaxim345 commented on Aug 18, 2026

    @maximmaxim345
    Member

    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.
  2. maximmaxim345 commented on Aug 19, 2026

    @maximmaxim345
    Member

    This idea is good.

  3. balloob commented on Aug 19, 2026

    @balloob
    ContributorAuthor

    Move all fields that can change dynamically from support objects to the state. Audit all support objects.

  4. moved this from Next to In Progress in Sendspin Project Boardon Aug 28, 2026
  5. added a commit that references this issue on Sep 2, 2026
    c4940f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions