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 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 22:27:35 +03:00
1 parent b370649421
commit c76117ca90
1 file changed
+3
+3
View File
@@ -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();