tsc-stream: interop with Chromium's WebRTC stack, codec order fixes
tests/interop/browser-peer.cjs runs headless Chromium (Playwright) as the remote peer; crates/tsc-stream/tests/browser_interop.rs (TSC_INTEROP=1) exchanges SDP with it over stdin/stdout: - our loopback streamer offer (VP8 + Opus) answered by Chromium: packets, bytes and decoded frames of the synthetic VP8 keyframes, Opus packets - Chromium offers canvas video + oscillator audio with VP8, VP9, H264 and AV1 preferred in turn; our viewer peer receives that codec and Opus, with trickled browser candidates and a keyframe after a PLI - a server-reflexive candidate (fake STUN server) trickled with the peer's mid is accepted by addIceCandidate Fixes found on the way: - the viewer's answer followed str0m's codec order, so the streamer's preference was ignored; the answer now keeps the offer's order (accept_video_codecs filters it) - streamers offered VP8 and H264 by default while frames are sent on the first negotiated payload type: offer only VP8 by default - H.264 offers include Constrained High (640c1f), reportedly the only profile the TeamSpeak client decodes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
8d8a8c5eab
commit
23fbbf0221
5 files changed
+698
-19
No files matched your search
@@ -21,7 +21,7 @@ tsproto-packets = { path = "../proto/tsproto-packets" }
|
||||
[dev-dependencies]
|
||||
anyhow = "1"
|
||||
futures = "0.3"
|
||||
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "sync", "time"] }
|
||||
tokio = { version = "1", features = ["io-util", "macros", "net", "process", "rt-multi-thread", "sync", "time"] }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[lints]
|
||||
|
||||
Reference in new issue
Block a user