From c76117ca903bf43518e38cf2b1c519752c735c3f Mon Sep 17 00:00:00 2001 From: selikhov Date: Sat, 3 Oct 2026 22:27:35 +0300 Subject: [PATCH] voelinctl: subscribe to every channel for stream list and watch The new smoke step (a viewer in the default channel watching a stream in another channel) failed: `voelinctl stream watch` waited forever. Unlike the app's engine and voelinctl's tree and repl, the stream commands never subscribed to the other channels, and the server shows a client, and so its streaming flag, only in subscribed channels; discovery never learned there was a stream to look up. They now subscribe to every channel on start, as the engine does. Checked on the TS6 dev server: a viewer in the default channel received and decoded 60 pictures (1280x720) of a stream in `smoke-elsewhere`. Co-Authored-By: Claude Opus 5.5 --- tools/voelinctl/src/stream.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/voelinctl/src/stream.rs b/tools/voelinctl/src/stream.rs index 6fc1671..ebc186b 100644 --- a/tools/voelinctl/src/stream.rs +++ b/tools/voelinctl/src/stream.rs @@ -147,6 +147,9 @@ pub async fn run(con: &mut Connection, args: &StreamArgs) -> Result<()> { if !ServerFlavor::from_version_string(&version).capabilities().streams { bail!("streams need a TeamSpeak 6 server (this one is {version})"); } + // Every channel, as the app does: a stream can be watched from any + // channel, and the server shows a streamer only in subscribed channels. + con.get_state()?.server.set_subscribed(true).send(con)?; let mut config = if args.loopback { PeerConfig::loopback() } else { PeerConfig::default() }; if !args.stun.is_empty() { config.stun_servers = args.stun.clone();