Repository navigation
Accept players that list only Opus in strict mode - #617
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the change allowing Opus-only players to pass strict-mode hello validation.
No open issues 🎉
What changed in this PR
This PR updates server hello validation to accept Opus-only players in strict mode, aligning with the relaxed codec requirements described in Sendspin/spec#323. Streaming eligibility remains governed by the server’s available encoders.
Changes:
- Removes the noncompliance check requiring players to advertise FLAC or PCM.
- Replaces the Opus-only rejection case with a strict-mode acceptance regression test.
| File | Description |
|---|---|
tests/server/test_compliance.py |
Removes the obsolete rejection case and tests strict-mode acceptance of Opus-only players. |
aiosendspin/server/connection.py |
Removes the FLAC/PCM requirement and unused AudioCodec import. |
Review effort: Balanced
A server with allow_noncompliant_clients=False rejected players whose supported_formats listed neither flac nor pcm.
maximmaxim345
force-pushed
the
fix/accept-opus-only-players
branch
from
November 16, 2026 15:37
f492800 to
ee0ff47
Compare
21 of 31 tasks
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.
What does this implement/fix?
A server running with
allow_noncompliant_clients=Falserejected players whosesupported_formatslisted onlyopus, and other servers logged a non-compliance warning for them. The spec no longer requires players to listflacorpcm, so these players are compliant.The server picks Opus for them when PyAV has libopus, and otherwise sends them no stream, like any player that lists only formats the server can't produce.
Related issue or spec PR (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependencies