Skip to content

Clarify player buffering and synchronization requirements - #270

Merged
kahrendt merged 1 commit into
mainfrom
review/issue-100-player
Sep 11, 2026
Merged

kahrendt merged 1 commit into
mainfrom
review/issue-100-player

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

Normalize player requirement wording and clarify which rules are mandatory. Changes beyond keyword normalization:

  • Change stream/clear handling from a recommendation to a MUST: clients clear all buffered audio chunks and continue with chunks received after the message - seeks must not replay buffered audio from the old position.
  • Change byte-cap enforcement from a recommendation to a MUST NOT: servers cannot send data that would exceed the player's buffer_capacity - the advertised capacity is a hard limit, not a buffering target.
  • Tie startup timestamps to the specified minimum send-ahead rather than ambiguously requiring the player's lead-time hint - the spec explicitly allows servers to provide less than required_lead_time_ms.
  • Require state updates when a player state field changes, and apply timing debounce to measurements before changing the reported fields - debouncing must not delay reporting a field that has already changed.
  • Clarify that player state is sent only while the role is active. Check outgoing commands against the latest player state received by the server, while clients ignore commands absent from their current supported-command list - support changes and commands can cross in flight.
  • Replace ambiguous binary-message rejection guidance with a sender prohibition outside an active stream. During an active stream, unavailable clients SHOULD discard otherwise valid audio and MUST NOT close solely because it arrived - availability updates and audio can cross in flight.
  • Remove the example's separate mandatory per-chunk correction bound and refer its one-shot corrections to the existing rarity requirement. The protocol-wide correction-quality requirements remain unchanged - the speed cap is measured over 150 ms, not per chunk.

Addresses part of #100.

@kahrendt kahrendt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kahrendt
kahrendt merged commit 625dc2f into main Sep 11, 2026
1 check passed
@kahrendt
kahrendt deleted the review/issue-100-player branch September 11, 2026 21:06
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