Merge the development branch: streams of every channel

Brings in the streams of every channel (StreamItem::channel, the streams
panel listing other channels' streams after ours, the viewer's channel)
and the answer to a streamer's new offer.

streams.rs keeps both of the viewer's new values: whether the streamer
is an admin (this branch) and the stream's channel (the development
branch). The phone's pieces that list Bridge.streams now say where a
stream of another channel is: the voice screen's stream cards ("Lumen ·
in Gaming") and Home's Live now cards, whose comment and the server
rail's live flag no longer claim they are about our channel only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 22:24:13 +03:00
commit 1c6251e7b7
18 files changed
+342 -71

No files matched your search

+16
View File
@@ -262,6 +262,22 @@ the official client itself is still to be confirmed: the beta needs a
myTeamSpeak sign-in on first start, so it cannot run from a throwaway
profile.
### The official client re-offers (confirmed, client 6.0.0-beta4.1, 2026-10-03)
Streaming from the official client to Voelin, its log shows: our answer
(H.264, VP9, VP8 — no AV1, which the app did not decode) → "remote peer is
using unsupported codec, realign" → a new `offer` signal on the same
connection → our answer → `ENCODER create: H264`. The new offer is a
renegotiation of the running connection: the answer must come from the same
peer (same ICE credentials and DTLS fingerprint). Voelin answered every offer
with a new peer, so the connection broke and nothing was shown. Now
`Peer::renegotiate` answers an `offer` signal on the running connection (a
`reconnectOffer` still starts a new one), in the codec order of the new offer
(str0m keeps the first offer's order; `order_like_offer` fixes the answer's
`m=` lines), so the streamer switches to the codec it re-offered. Tested
against Chromium: `browser_renegotiates_with_rust` (VP8, then a re-offer of
VP9 on the same connection; VP9 frames arrive).
## Open questions
- [x] Viewer side: `joinstreamrequest id clid msg is_remove` (see above).
+16 -2
View File
@@ -174,9 +174,12 @@ for A. So metadata would work as a fallback between Voelin clients, but
optional `id` for the empty answer) and `notifystreamupdated`.
- `voelin_stream::discovery::Discovery` follows the clients on the server:
their channel and `client_is_streaming`. It keeps the stream directory to
the streams in our own channel. It looks up a client that streams in our
channel and whose stream we were not told:
the streams of every client on the server that streams, in any channel
(a stream can be watched from another channel, see below). It looks up a
client that streams and whose stream we were not told:
- after connecting;
- when a client in another channel starts streaming (the server announces
a stream only in its channel);
- after we or the streamer change channels;
- when a streamer in our channel starts and its `notifystreamstarted`
has not arrived by the next update of the client list.
@@ -194,6 +197,17 @@ for A. So metadata would work as a fallback between Voelin clients, but
- The engine (`voelin-core`) and `voelinctl stream list/watch` feed the
client list into `Streams::update_clients`.
Watching from another channel (confirmed, 6.0.0-beta13.1, 2026-10-03): with
B in the default channel and A's stream in another one, `requeststreaminfo
clid=<A>` answers as above and `joinstreamrequest` reaches A
(`notifyjoinstreamrequest`), the probe above shows it. The whole join with
media works too: `scripts/it-smoke.sh`, step "late stream", has a viewer in
the default channel watch a stream in `smoke-elsewhere`, and the app (no
gateway) listed and played a stream in another channel. Voelin lists the
streams of every channel, ours first; as a streamer with `stream.permissions
= channel` (the default) it lets its channel in and asks the user about
viewers from other channels.
Fallbacks (i) and (ii) from the plan were not built, because the native
command works. (i) would have been a re-announcement by the streamer; (ii)
would have put the stream id into `client_meta_data`. The probe shows what