Files
VoelinClient/crates/tsc-stream/Cargo.toml
T
Claude 23fbbf0221 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
2026-09-25 19:56:58 +00:00

29 lines
921 B
TOML

[package]
name = "tsc-stream"
version = "0.1.0"
description = "TeamSpeak 6 streams: signalling commands, JSON signal messages and WebRTC peers (str0m)."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish.workspace = true
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
str0m = { version = "0.23.1", default-features = false, features = ["aws-lc-rs"] }
thiserror = "2"
tokio = { version = "1", features = ["macros", "net", "rt", "sync", "time"] }
tracing = "0.1"
tsclientlib = { path = "../proto/tsclientlib" }
tsproto-packets = { path = "../proto/tsproto-packets" }
[dev-dependencies]
anyhow = "1"
futures = "0.3"
tokio = { version = "1", features = ["io-util", "macros", "net", "process", "rt-multi-thread", "sync", "time"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[lints]
workspace = true