Merge the negotiation work: best first, then fall back, everywhere
The user's rule for every negotiation: try the best option first and step down for compatibility when it is not accepted. - H.264 is offered in Constrained High, then Constrained Baseline; the streamer encodes each viewer in the profile its answer took (headless Chromium, which answers Baseline only, now decodes our H.264 streams). - A connection that connects but carries nothing steps down at runtime: the viewer reconnects without the failing SRTP profile, or without the codec when audio came; the streamer offers a new connection when its viewer reports nothing; video of one codec that never decodes makes the viewer ask for another codec. Proven with a UDP relay that breaks SRTP and against Chromium. - mDNS host candidates (`<uuid>.local`) are resolved, so peers that hide their addresses still connect on a LAN. - Peer sockets get 4 MB send and receive buffers: bursts at 9 Mbit/s no longer drop datagrams in the kernel; NACK and retransmission repair losses before frames reach the pipeline. - docs/architecture.md, "Negotiation: best first, then fall back": every negotiation point, its ladder, what counts as refused, and why AES_CM stays first for SRTP and DTLS stays at 1.2 until the official client is shown to take the alternatives. Checked on the merged tree (with the decoders and servers work): fmt, clippy, the tests of stream, media, core, ui, voelinctl, gateway and tsclientlib, the browser interop tests (7 and 3) and scripts/it-smoke.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
fe9d468d71
27 files changed
+2435
-295
No files matched your search
Generated
+1
@@ -9660,6 +9660,7 @@ dependencies = [
|
||||
"futures",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"socket2",
|
||||
"str0m",
|
||||
"thiserror 2.0.21",
|
||||
"tokio",
|
||||
|
||||
Reference in new issue
Block a user