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
TeamSpeak Declarations
This repository contains all kind of data which is related to TeamSpeak.
This data is used for code generation in various projects, therefore all the data is machine readable.
- Errors.csv: The error codes of TeamSpeak
- Permissions.csv: The permissions in TeamSpeak
- Messages.toml: Commands, sent over TeamSpeak connections
- Book.toml: Declarations for keeping track of all things which happen on a server
- Enums.toml: Various enums used in commands
- MessagesToBook.toml: Mappings from commands to book structs that allow to automatically update the tracked state
- BookToMessages.toml: Functions that can be called on book structs and generate commands
- Versions.csv: A bunch of client versions where the versionHash is known
- Badges.csv: List of known badges
The low level TeamSpeak protocol is described in ts3protocol.md.
License
Licensed under either of
at your option.