M7 (part 1): tsc-stream signalling and str0m peers

New crate tsc-stream for TeamSpeak 6 streams:
- proto: typed StreamNotification from the notifystream* messages and
  builders for setupstream, joinstreamrequest, respondjoinstreamrequest,
  streamsignaling, removeclientfromstream and stopstream
- signal: the JSON messages inside streamsignaling (offer, answer,
  iceCandidate, reconnect), accepting the known key spellings
- stun: minimal STUN binding client for server-reflexive candidates
- peer: a str0m peer connection driven by a tokio task, one UDP socket per
  host address; STUN lookups run in the background and found candidates are
  reported for trickling

Declarations (verified against 6.0.0-beta13.1): joinstreamrequest; stopstream
and removeclientfromstream require `reason`; is_remove/reason/return_code on
the notifications.

Tests: two peers over loopback exchange VP8 and Opus frames; with TSC_LIVE=1 a
whole stream runs through the TS6 dev server (setup, join, offer, answer,
media, kick, stop). it-smoke.sh runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-25 19:22:05 +00:00
1 parent afe37b23a5
commit 0b1aa5664e
16 files changed
+1974 -37

No files matched your search

+7
View File
@@ -60,3 +60,10 @@ against or offered back to upstream.
are bounds-checked now.
- `tsproto-packets/src/packets.rs`: the invalid-codec error for short C2S audio
packets read `content[4]` instead of the codec byte `content[2]`.
7. **TeamSpeak 6 stream commands, verified against 6.0.0-beta13.1**
(`tsproto-structs/declarations/Messages.toml`). New fields `is_remove` and
`reason` (stream leave reason). New command `joinstreamrequest id clid msg is_remove`
(`JoinStreamRequestRequest`); `stopstream` and `removeclientfromstream` take the
required `reason`; `notifyjoinstreamrequest` carries `is_remove`,
`notifystreamstopped` and `notifystreamclientleft` carry `reason`, the latter also
`return_code`.