Find TeamSpeak 6 streams that started before we joined
The server announces a stream (notifystreamstarted) only to the clients in the streamer's channel when it starts. A client that connects or enters the channel later saw the streamer's client_is_streaming flag but could not watch. The probe (docs/research/ts6-late-join.md) found that `requeststreaminfo clid=<streamer>` answers with notifystreaminfo, one part per stream of the client, from any channel. voelin-stream gets a discovery module. Streams::update_clients takes the clients on the server (channel and streaming flag), keeps the directory to the streams in our channel, and looks up the streams of streamers in our channel we were not told about: after connecting, after we or they change channels, and when an announcement did not come. The answer fills the directory like an announcement, so Event::StreamsChanged lists the stream and it is watched like any other. Where streams are looked up is a StreamLookup trait (the server now; a gateway directory can plug in with Streams::add_lookup and report through Streams::discovered). notifystreamupdated (updatestream) now updates the directory. The engine and `voelinctl stream list/watch` feed the client list in. The declarations learn the notifystreaminfo answer's fields, notifystreamupdated and requeststreaminfo. Tests: a fake-server session test and an engine live test with a viewer that arrives after the stream is live, discovery unit tests, parsing of the server's answers; it-smoke gets a late-viewer step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
15 files changed
+977
-76
No files matched your search
@@ -167,24 +167,33 @@ property for the planned SFU mode.
|
||||
Errors: `setupstream` refused with error 2568 ("insufficient client
|
||||
permissions") has been seen; no stream permission names are documented.
|
||||
|
||||
More text commands and notifications named in the server binary (not probed
|
||||
yet): `requeststreaminfo` (its protobuf request only has `stream_id`, so it
|
||||
cannot discover the ids of unknown streams), `updatestream` (`stream_id`,
|
||||
`stream_name`, `max_width`, `max_height`, `max_framerate`, `properties`),
|
||||
`notifystreamupdated`, `notifystreamattendees` (`return_code`, `client_id`).
|
||||
More text commands and notifications named in the server binary:
|
||||
`requeststreaminfo`, `updatestream` and `notifystreamupdated` (probed, see
|
||||
below), and `notifystreamattendees` (`return_code`, `client_id`; never seen).
|
||||
The protobuf `RequestStreamInfoRequest` only has `stream_id`, but the text
|
||||
command takes `clid` instead.
|
||||
|
||||
### Streams that started before we joined (confirmed, 6.0.0-beta13.1, 2026-09-26)
|
||||
|
||||
`initserver` and `notifycliententerview` carry `client_is_streaming`, but no
|
||||
stream id, and the server does not send `notifystreamstarted` for running
|
||||
streams to a client that connects later: a `voelinctl stream list` started while
|
||||
the desktop app streamed printed only "id not announced", while one connected
|
||||
before the stream started got the id. Entering the channel later was not
|
||||
probed separately. `voelinctl stream list` shows such streamers as "id not
|
||||
announced"; `voelinctl stream watch --id <uuid>` can still join when the streamer
|
||||
is known (`--streamer-nick`, or the only other client streaming). The desktop
|
||||
app lists them as streaming but not watchable. The smoke test starts the
|
||||
viewer first. How the official client learns these ids is open.
|
||||
stream id. The server sends `notifystreamstarted` only to the clients in the
|
||||
streamer's channel when the stream starts. A client that connects later, or
|
||||
enters the channel later, gets nothing about running streams.
|
||||
|
||||
`requeststreaminfo clid=<streamer>` fills the gap. It answers with
|
||||
`notifystreaminfo` (the command's `return_code`, then one part per stream of
|
||||
the client: `clid id name type accessibility mode viewer bitrate viewer_limit
|
||||
audio`), from any channel. For a client without streams, or an unknown
|
||||
client, the answer has no stream parts.
|
||||
|
||||
`updatestream id=<id> [name type access mode bitrate viewer_limit audio]`
|
||||
notifies the channel with `notifystreamupdated clid id <changed fields>`. It
|
||||
sends nothing when nothing changed.
|
||||
|
||||
Full transcript, all the variants tried, and what Voelin does with them:
|
||||
[docs/research/ts6-late-join.md](../research/ts6-late-join.md). Voelin
|
||||
looks up unannounced streams in its channel with `requeststreaminfo`
|
||||
(`voelin_stream::discovery`).
|
||||
|
||||
### WebRTC interop with Chromium (confirmed, Chromium 141, 2026-09-26)
|
||||
|
||||
@@ -216,9 +225,10 @@ libwebrtc, the stack the official client is built on:
|
||||
- [x] Parameters of `stopstream` and `removeclientfromstream` (`reason` is required).
|
||||
- [ ] Which permission gates `setupstream` (error 2568).
|
||||
- [x] Contents of `notifystreamstarted` (see probe results).
|
||||
- [ ] Contents of `notifystreaminfo` (`requeststreaminfo id=<uuid>`).
|
||||
- [x] Contents of `notifystreaminfo` (`requeststreaminfo clid=<streamer>`, see above).
|
||||
- [x] Whether a client that connects later is told about running streams: no (see above).
|
||||
- [ ] How the official client finds running streams after connecting.
|
||||
- [x] How a client finds running streams after connecting: `requeststreaminfo`
|
||||
(presumably what the official client does too; not captured from it).
|
||||
- [ ] Interop with the official TS6 client (its offer/answer details, codecs it
|
||||
actually picks, whether it trickles candidates, mDNS host candidates).
|
||||
Chromium's WebRTC stack interoperates (see above).
|
||||
|
||||
Reference in new issue
Block a user