Merge Wave 6A: studio outputs, cameras, viewer counts and layers
RTMP output for the Stream Studio through libavformat (any stream codec, pushed as H.264 + AAC; tested against `ffmpeg -listen 1`, ffprobe checks), MJPEG cameras (decoded off the capture thread), TeamSpeak 6's own viewer counts (`viewer` of `notifystreaminfo`, refreshed round robin), a viewer quality picker for Voelin streams (`a=x-voelin-layers` in the offer, an `x-voelin-layer` signal only Voelin streamers get), viewer-side stats over the player, Windows cameras through Media Foundation (compile-checked only), and the docs for all of them. Merged cleanly with server-wide stream discovery and renegotiation; the viewer-count refresh now covers every channel's streams. fmt, clippy and the tests of stream, media, core, ui and voelinctl pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
3bd230767c
41 files changed
+3878
-233
No files matched your search
@@ -196,6 +196,41 @@ Full transcript, all the variants tried, and what Voelin does with them:
|
||||
looks up unannounced streams in its channel with `requeststreaminfo`
|
||||
(`voelin_stream::discovery`).
|
||||
|
||||
### Viewer counts (confirmed, 6.0.0-beta13.1, 2026-10-03)
|
||||
|
||||
Streamer A, viewers B and B2, bystander C in one channel, every command
|
||||
logged (`--log-commands`):
|
||||
|
||||
- `viewer` of `notifystreaminfo` is the number of viewers the streamer
|
||||
accepted: `requeststreaminfo clid=<A>` answered `viewer=1` while B2
|
||||
watched and `viewer=0` after it left.
|
||||
- `notifystreamclientjoined clid=<viewer> id=<stream>` goes to everyone in
|
||||
the channel (C got one for B and one for B2), but not to the viewer who
|
||||
joined.
|
||||
- `notifystreamclientleft clid=<viewer> id=<stream> reason=1` goes only to
|
||||
the streamer and to the viewer who left (`joinstreamrequest ...
|
||||
is_remove=1`); C got nothing, also not when B left the server.
|
||||
- No `notifystreamupdated` when viewers come or go (`StreamUpdated` has no
|
||||
viewer field).
|
||||
|
||||
So a client counts joins itself, and asks `requeststreaminfo` again now and
|
||||
then for the leaves it is not told about: `StreamInfo::viewers`
|
||||
(`voelin_stream`), kept by `StreamDirectory` and refreshed one stream at a
|
||||
time every 5 s by the engine (`Streams::refresh_viewer_counts`).
|
||||
|
||||
### Voelin's own additions (not TeamSpeak's)
|
||||
|
||||
Between Voelin clients only, a viewer can pick the streamer's simulcast
|
||||
layer: the offer of a Voelin streamer with several layers carries a
|
||||
session-level `a=x-voelin-layers:<id>/<WxH or scale>/<bitrate>[/<fps>] ...`
|
||||
line, and a Voelin viewer that saw it may send
|
||||
`streamsignaling json={"cmd":"x-voelin-layer","args":{"layer":<id or null>}}`.
|
||||
The server relays both unchanged (6.0.0-beta13.1). Official clients are not
|
||||
affected: libwebrtc skips unknown session attributes (headless Chromium 152
|
||||
answers and decodes such an offer), and official streamers never put the
|
||||
attribute in their offers, so they are never sent the signal. Details in
|
||||
[media.md](../media.md).
|
||||
|
||||
### WebRTC interop with Chromium (confirmed, Chromium 141, 2026-09-26)
|
||||
|
||||
`crates/voelin-stream/tests/browser_interop.rs` (`VOELIN_INTEROP=1`, see
|
||||
|
||||
Reference in new issue
Block a user