Commit Graph
150 Commits
Author SHA1 Message Date
Claude 2b039175db Merge remote-tracking branch 'origin/claude/gifted-lovelace-1crlx2' into claude/hopeful-babbage-5h4kbg 2026-10-04 16:37:57 +00:00
Claude ba03a1f549 Gitea release: a secret name Gitea accepts, and its server task limit
Gitea refuses secret names that start with GITEA_ or GITHUB_, so the
GITEA_RELEASE_TOKEN secret the release workflow read could never be
created and every tag's draft release failed after the builds. The
secret is RELEASE_TOKEN now; the script still receives it as
GITEA_RELEASE_TOKEN.

The Gitea server stops any task older than [actions] ENDLESS_TASK_TIMEOUT
(3h by default) whatever the runner's timeout says, which would end the
eight-hour release job: docs/ci.md says to raise it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:37:42 +00:00
Claude 7270e4c0e4 Banners: download those in the server's files, larger and slower ones
Not every banner arrived:

- Banners kept in the server's own files are linked as ts3image://
  (TeamSpeak 5 and 6: ts3image://<host>?port=…&channel=…&path=…&filename=…,
  the file browser's ts3file:// link with its scheme changed; TeamSpeak 3:
  ts3image://<name>?channel=…&path=…). Only http(s) was fetched, so these
  never were. They now come through the voice connection's file transfer
  (files::server_image), cached under the server and the address.
- A web download had 16 MiB at most and 30 seconds in all, while up to
  eight run at once: a large animated banner, or several on a slow link,
  failed and failed again on every retry. Pictures may now be 64 MiB and
  go to disk as they arrive instead of into memory; a download fails when
  nothing arrives for 20 s or when, after its first 30 s, it averages less
  than 32 KiB/s. Accept names the formats the UI decodes.
- Pictures over file transfer had 30 seconds too; now 30 s plus their
  size at 32 KiB/s, and at most 64 MiB.

The voice protocol's MAX_DECOMPRESSED_SIZE goes back to 2 MiB: it bounds
compressed commands (the channel list), not pictures, and QuickLZ reserves
the size a packet declares, so 1 GiB let any server make the client
allocate a gigabyte with one small packet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:37:02 +00:00
faumaray a741335e90 banners
Signed-off-by: Faumaray <faumaray@gmail.com>
2026-10-04 19:15:42 +03:00
selikhov 7e2d4ddba1 ci fixes
Signed-off-by: selikhov <selikhov@protei-lab.ru>
2026-10-04 18:07:21 +03:00
selikhov cbe28ce5b5 Fix image download recovery and banner layout
Retry failed avatars, icons and banners automatically with bounded backoff,
expire stalled image transfers, and preserve explicit avatar requests.
Bound concurrent HTTP downloads, allow larger banners, and decode BOM SVGs.

Separate artwork from channel titles and controls across desktop and mobile,
using bounded aspect-aware areas and realistic demo fixtures.

Validation: 176 library tests, explicit-fetch policy regression, independent
TS6 avatar download and transient503/banner reload scenarios, strict Clippy,
formatting, license notices, and eight reviewed headless captures.
2026-10-04 18:04:10 +03:00
selikhov 511c7dcd74 Complete channel banners across desktop and mobile
Finish banner rendering, image cache invalidation, avatar/icon wiring and image-format support. Bound raster decoding, retain readable text contrast, and recover failed downloads while stopping obsolete reload timers.

Validated with 168 library tests, a private TS6 banner lifecycle test including the real 60-second reload, desktop builds, strict scoped Clippy, formatting, license notices, independent source review and six headless desktop/mobile renders.
2026-10-04 17:05:25 +03:00
selikhovandClaude Opus 5.5 d5bbefcaeb docs: 60 Mbit/s, 8K and 320 fps, measured
What capped a Voelin stream and what does now; what the GPU's encoders
reach on their own (AV1 61-63 fps at 8K, 233 at 4K; HEVC 51-52 and 193;
H.264 at most 4096 wide, 194 at 4K); the streamer before and after
(8K30 from memory on 1.45 cores instead of 3.47, 8K60 from video memory at
60 fps on 0.01, 4K120 H.264 at 120 instead of 84, 4K240 AV1 at 232
instead of 107); end to end through the TeamSpeak 6 dev server (4K60 AV1
at 60 Mbit/s decoded at 60 fps, 1440p240 AV1 and 1080p240 H.264 arriving
at their full 60 Mbit/s, 8K30 limited by the viewer's decoding at about
20 fps); why a 60 Mbit/s 4K60 stream arrives as 40-46 (the encoders' CBR
filler and padding, which str0m drops); and the viewer's RGBA cost per
picture, which is not the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:46:29 +03:00
selikhovandClaude Opus 5.5 1b1f7087c2 voelin-ui: 60 Mbit/s, 8K and 320 fps in the new settings pages
Wave 4B's settings pages arrived with their own stream controls, written
for the old limits: the Video page's bitrate slider stopped at 20 Mbit/s,
its frame rates at 120 and its quality presets at 1440p, and with the
automatic bitrate (0, now the default) any change on that page stored a
bitrate of 1 kbit/s (`form.bitrate.round().max(1.0)`), while the
Streaming page could not set the automatic bitrate back.

Kept 4B's layout and put the controls into it: frame rates up to 320,
quality presets 4K and 8K (`PRESETS`), the slider up to 60 Mbit/s with
the field empty (and a note) for the automatic bitrate, which a preset
turns into the automatic bitrate of its size and the frame rate
(`preset_layers`, tested); the Streaming page takes empty, 0 or "auto" as
automatic and says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:19:54 +03:00
selikhov 06d6406afa Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc
# Conflicts:
#	crates/voelin-ui/src/settings.rs
2026-10-04 10:06:33 +03:00
selikhovandClaude Opus 5.5 4cb6c6b527 Merge the identity defaults: one default, one identities page
The development branch's identity work and this wave's Profiles page
were two models of the same thing: the store's default identity (schema
4: where each identity came from and which one is the default, which the
import on start relies on to replace Voelin's own identity once) next to
this wave's identity.default setting, and a separate Identities section
next to Profiles. They are one now.

- The store's default is the only default: the identity.default setting
  is gone (never released, so nothing to migrate). Choosing an identity
  calls Store::set_default_identity as the user's choice, which no
  import replaces, and says it applies from the next connection.
- One place picks the identity of a connection: the bookmark's own if it
  names one that exists, else the store's default. Connecting, My
  Account and each identity's "Used by" all go through it.
- Profiles has what Identities had: each identity's origin ("Made in
  Voelin", "Imported", "Chosen by you") with its level, the Default
  badge or "Use as default", and the switch for importing the official
  clients' identities on start, next to this wave's rename, export,
  delete, security level, import by hand and identity per server. The
  Identities section, its sidebar entry and the phone's sixth tab are
  gone; VOELIN_OPEN=settings:identities opens Profiles.
- docs/identity.md and docs/ui.md say so; the Identities screenshot gives
  way to the Profiles one, taken from a store with the created identity
  and a synthetic TeamSpeak one.

Checked headless with a fake home and synthetic identities only: the
first start creates Default; the second, with a synthetic TeamSpeak 6
database, makes its identity the default once and says so; the third
changes nothing, and My Account shows the store's default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:56:25 +03:00
selikhov 5f3f4d39de Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 09:28:11 +03:00
selikhovandClaude Opus 5.5 52eb65c7dc Streams: offer the H.264 level the encoder makes, at most 5.2
The app's streams always offered H.264 at level 3.1: its peer
configuration is made before a share starts, and only voelinctl set the
real level. A 4K or high-frame-rate stream then declared far less in its
offer than in its SPS, which a viewer that sizes its decoder from the
offer may refuse.

Each layer's encoder now tells its sink what it makes
(`MediaSink::layer_format`: size, frame rate, bitrate, whether the
bitrate is automatic), when the sink is attached (from the size captured
so far, so a viewer that joins before the first frame is encoded is
covered), with the layer's first frame and on every change. The engine's
stream task offers new viewers the level of the largest layer (its
bitrate at `max_bitrate` if that is higher) in both profiles, and puts an
automatic bitrate into the layer as before; this one hook replaces
`auto_bitrate`.

Offering 6.0 broke the stream: str0m 0.23 knows no H.264 level above 5.2,
nor does libwebrtc (`H264Level` on its main branch), and a
`profile-level-id` they cannot parse matches nothing, so a viewer answered
without video (`m=video 0`). The offer is now capped at 5.2
(`h264::MAX_OFFER_LEVEL`); a stream that needs 6.x (4K above 60 fps, 8K)
is offered as 5.2 and keeps its real level in the SPS.

Tests: through two stream tasks, an encoder's 3840x2160@60 reaches the
next offer as 640c34 and 42e034 (and without the update it stays 3.1);
the largest layer counts, at its max bitrate; an automatic bitrate still
moves the layer once, not per frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:28:05 +03:00
selikhovandClaude Opus 5.5 69152a8ae1 Streamer: convert pictures in memory on the GPU too, for VA-API encoders
Measured at 7680x4320@60 with av1_vaapi at 60 Mbit/s, the CPU path made
27 fps: the pyramid converted each frame to I420 on every core (4.6 ms),
then the encoder thread interleaved it to NV12 and uploaded it into a
VA-API surface on one thread (`encode_with`), 20 ms of its 36.7 ms per
frame, so 81 frames in 5 s were dropped. 3840x2160@120 with h264_vaapi
made 84 fps the same way.

While every encoder takes GPU frames, a picture in memory (shared memory
from the portal, X11, wlroots, the studio's composite, the test pattern)
now takes the GPU path the DMA-BUFs take: `GpuConverter::convert_memory`
copies it as it is (BGRx or RGBx) into a VA-API surface of its own and
converts and scales that for every layer. That copy is all the CPU does:
5.7 ms of the 11.9 a 7680x4320 frame takes (the rest is the GPU's upload
and conversion), one thread, because eight copying threads saved 2 ms for
four times the CPU. Not waiting for the GPU was tried and was slower
(36 fps at 8K60 against 42: the encoder then waited instead).

The test pattern drew a 7680x4320 frame on one thread (230 MB of copies),
which alone kept the bench under 40 fps; it now draws in bands on four
threads, which the memory bandwidth limits anyway.

Tests: a BGRx and an RGBx picture through the GPU match the CPU's
conversion (40.4 dB at full size, 48.7 at half), and a streamer on the
test pattern in memory with two `h264_vaapi` layers sends every frame
through the GPU and decodes in the right colours (a red-blue swap fails
it). The bench's GPU count now covers both kinds of frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:13:32 +03:00
selikhovandClaude Opus 5.5 e60fa6ed34 docs/ui.md: home, friends, messages and the settings pages, with pictures
The screens of this wave had no line in docs/ui.md, against the recipe
for adding a screen: what each shows, how it opens headless and which
engine data it reads. They now have a section with a table of the parts
(home, Library, friends, direct messages, the bell, search, events,
pictures in chat, join by address) and one of the settings sections, the
UI's new keys (ui.image_preview_kb, notify.*, video.*, identity.default),
the new VOELIN_OPEN switches, the new files in the structure, and the
limits of mapping the design onto TeamSpeak.

The screenshots of the home, the server page, the light theme and the
settings showed the screens before this wave; they are taken again, and
the new screens (friends, messages, the bell, search, events, Library,
Integrations, Profiles, and on the phone friends, messages, events, the
bell and the streaming settings) are added, all headless with sample
data and reduced to 256 colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:10:11 +03:00
selikhovandClaude Opus 5.5 bf04b25a3e Merge the development branch: stream negotiation, best first then fall back
No conflicts. From the development branch: stream connections step down
when they connect but carry no media or never decode (another codec,
H.264 profiles, SRTP fallback), mDNS host candidates, larger stream
sockets, and the smoke test waiting for clients instead of pausing.
Nothing in the UI crate changed; this wave's screens are as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:02:09 +03:00
selikhovandClaude Opus 5.5 b0178c9bf0 Merge the development branch: stream negotiation, it-smoke readiness
Brings the negotiation work (voelin-stream: mDNS candidates, relays,
Chromium offers) and it-smoke waiting for clients instead of fixed
pauses, before the final checks of the identity default work. No
conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:50:57 +03:00
selikhov 1f7c16ab27 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc
# Conflicts:
#	tools/voelinctl/src/stream.rs
2026-10-04 04:48:34 +03:00
selikhovandClaude Opus 5.5 8fb1c475df Merge the negotiation work: best first, then fall back, everywhere
The user's rule for every negotiation: try the best option first and step
down for compatibility when it is not accepted.

- H.264 is offered in Constrained High, then Constrained Baseline; the
  streamer encodes each viewer in the profile its answer took (headless
  Chromium, which answers Baseline only, now decodes our H.264 streams).
- A connection that connects but carries nothing steps down at runtime:
  the viewer reconnects without the failing SRTP profile, or without the
  codec when audio came; the streamer offers a new connection when its
  viewer reports nothing; video of one codec that never decodes makes the
  viewer ask for another codec. Proven with a UDP relay that breaks SRTP
  and against Chromium.
- mDNS host candidates (`<uuid>.local`) are resolved, so peers that hide
  their addresses still connect on a LAN.
- Peer sockets get 4 MB send and receive buffers: bursts at 9 Mbit/s no
  longer drop datagrams in the kernel; NACK and retransmission repair
  losses before frames reach the pipeline.
- docs/architecture.md, "Negotiation: best first, then fall back": every
  negotiation point, its ladder, what counts as refused, and why AES_CM
  stays first for SRTP and DTLS stays at 1.2 until the official client is
  shown to take the alternatives.

Checked on the merged tree (with the decoders and servers work): fmt,
clippy, the tests of stream, media, core, ui, voelinctl, gateway and
tsclientlib, the browser interop tests (7 and 3) and scripts/it-smoke.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:45:52 +03:00
selikhovandClaude Opus 5.5 c551378729 Settings → Identities: see and choose the identity servers see
With the official client's identity taking the place of the one Voelin
made, the user needs to see which identity is in use and switch either
way. Settings has an Identities section now (a sixth tab, ID, on the
phone): every stored identity with where it came from, its security
level and unique id, "Default" on the one servers see and "Use as
default" on the others. A choice applies from the next connection,
says so in the status, and is the user's: no import replaces it (the
store marks a created identity chosen this way as the user's). The
section also has the switch for importing the official clients'
identities on start (identity.import_from_teamspeak).

The rows are a pure function with a test; screenshots, headless, of a
store with the created identity and two synthetic TeamSpeak ones.
docs/identity.md describes the one-time replacement and the section;
VOELIN_OPEN=settings:identities opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:43:02 +03:00
selikhovandClaude Opus 5.5 013918cfc9 Merge the development branch: add a server by its address, TSDNS, gateway DNS
Both sides kept. From the development branch: the add-server dialog
asks for the address and an optional password (the rest under Advanced
when editing), servers are found through TSDNS and their gateways in
DNS, wss:// gateways, the official client's identities imported on
every start, and a bookmark built from the form over the old one.

The dialog keeps this wave's join mode for Home's "Join a Server": its
title says so, the button reads Join and connects once saved; adding
and editing read as on the development branch. Saving takes the
development branch's bookmark_from_form, which keeps the bookmark's
identity as this wave's code did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:29:59 +03:00
selikhovandClaude Opus 5.5 a0ff7dae61 Bench the GPU path from buffers in video memory, as a compositor's are
The test pattern's DMA-BUFs came from /dev/udmabuf: ordinary memory,
which the GPU reads over the bus. Measured on the Radeon RX 7900 GRE
(`gpu_conversion_cost`, new, ignored): converting a 3840x2160 RGB buffer
to NV12 took 9.7 ms from such a buffer against 0.16 ms from one in video
memory in the driver's tiled layout, and 4.0 against 0.09 ms at 1080p;
the import itself costs 0.01-0.02 ms either way. So the bench showed the
GPU path at 4K240 stuck at 70 fps waiting for the bus, which no real
capture does. udmabuf also refuses buffers over 64 MiB, so 7680x4320
(132 MiB) could not be benched on the GPU path at all.

`SyntheticScreen::with_video_memory` (`StreamerConfig::
synthetic_video_memory`, `voelinctl stream bench --vram`) draws eight
frames of the pattern in advance into VA-API surfaces of the driver's
layout, exported as DMA-BUFs and handed over in turn, as a compositor
hands over the screen; a sink that declines them gets memory frames as
before. The exported surface was a test helper and is now crate code
(`ffmpeg::Exported`). With it, from a dev build: 4K240 AV1 at 60 Mbit/s
236.8 fps with 0.31 ms on the GPU per frame and 0.03 cores; 8K60 60.0 fps,
1.01 ms, 0.01 cores, the encoder's 16.5 ms per frame the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:18:53 +03:00
selikhov 5dd9aa1cd0 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 03:58:05 +03:00
selikhovandClaude Opus 5.5 57fc25ab9e voelin-media: HEVC and AV1 levels and tiers that count the frame rate
VA-API's HEVC and AV1 encoders guessed their level themselves: FFmpeg's
AV1 guess reads the frame rate from `AVCodecContext.framerate`, which has
no AVOption and so was never set, and its HEVC guess ignores the rate. A
4K240 stream declared a level for 4K60, which a decoder that sizes itself
from the level may refuse.

The encoder now sets the level and tier from the stream's size, frame
rate and bitrate (H.265 Table A.8, AV1 A.3): the lowest level whose Main
tier holds the bitrate, else the lowest whose High tier does, else no
limits (HEVC 8.5, AV1 level 31) as FFmpeg does. 4K60 at 60 Mbit/s is 5.2
Main, 4K240 and 8K60 6.1. Only for VA-API, whose options take
`general_level_idc` and `seq_level_idx`; other wrappers count levels
differently. The rate-control buffer is clamped to what its int holds, so
a typed bitrate above 1 Gbit/s no longer fails the open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:57:53 +03:00
selikhovandClaude Opus 5.5 ce5fe0a703 Capture: ask the compositor for the stream's frame rate, up to its own
The ScreenCast portal was offered a frame rate range up to the stream's
cap but no `maxFramerate`, so the compositor's own maximum (its screen's
refresh rate) applied whatever the cap was: a 30 fps stream of a 144 Hz
screen got 144 frames a second, of which the sink dropped most. It is now
offered `maxFramerate` up to the cap, preferably the cap: PipeWire keeps
the consumer's default where the producer's range allows it, so the
compositor sends at the lower of the cap and what it can, up to 320 fps
or more on a screen that fast. Renegotiated with the cap as before.

Windows Graphics Capture is reported to deliver about 60 frames a second
without a minimum update interval (or with one under 1 ms); it now gets
1 ms where Windows has the setting, so the sink's cap decides there too.
Type-checked only; it has not run on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:43:06 +03:00
selikhovandClaude Opus 5.5 ccc974fe05 Streams: an automatic bitrate up to 60 Mbit/s, and presets to match
The bitrate was a fixed 8 Mbit/s by default whatever was shared, and the
share dialog offered at most 10 Mbit/s and 60 fps. Asked for: Voelin
streams that can target 60 Mbit/s at up to 8K and 320 fps, with an
automatic bitrate that scales with the stream's resolution and frame rate
and follows it live, beyond 60 Mbit/s only when typed.

- `media::auto_bitrate(width, height, fps)`: 0.12 bits per pixel and
  frame (7.5 Mbit/s at 1080p30, 15 at 1080p60, 27 at 1440p60) between
  300 kbit/s and 60 Mbit/s, reached at 4K60 and 1080p240.
- `stream.bitrate_kbps` 0 is automatic and now the default. A streamer
  layer with bitrate 0 works it out per picture from the size encoded and
  the layer's frame rate, so a new resolution or frame rate moves it at
  once, and tells its sink (`MediaSink::auto_bitrate`). The engine's
  `StreamSink` puts it into the live stream's layer, so connections start
  their bandwidth estimate at it and probe for it; without that the
  stream would have kept the bitrate announced at the start.
  `Streamer::bitrate_kbps()` is what to announce.
- The quick share offers 15-320 fps and Auto, 2.5 to 60 Mbit/s (typed
  values still have no maximum; the `ui` blob keeps indices of the old
  lists for older versions). The studio offers 4K and 8K and 30-240 fps,
  takes an empty bitrate as automatic and derives its first simulcast
  layer from the automatic bitrate.
- The studio now tells the engine its layers when it goes live and when
  they change (`SetStreamLayers`), and a quick share resets them: the
  session sends only layers it knows of, so a studio's simulcast layers
  never reached a viewer, and its layer kept the bitrate announced.
- `voelinctl stream start` and `stream bench` default to the automatic
  bitrate too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:37:08 +03:00
selikhovandClaude Opus 5.5 f179296ec8 Never save a server with an empty nickname
With the address alone enough, a server added where there is neither an
imported identity's nickname nor a user name (Android has no USER) got an
empty nickname, which servers refuse; the form used to demand one. It
falls back to "Voelin user" now, editable under Advanced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:33:50 +03:00
selikhovandClaude Opus 5.5 2004c58146 Merge the development branch: decoders, watching from the channel list
Both sides kept. From the development branch: FFmpeg's decoders at
runtime (hardware first, then software, then built-in) with the settings
stream.hardware_decoding and stream.decoder_backend, applied to the
video when they change, and watching a streaming user's stream from the
channel list, their dialog and the member card.

video.rs keeps set_decoder_preference and leaves out encoder_report:
the Integrations page asks a copy of the codecs for the report on a
thread of its own (FFmpeg's probe can take a while), not on the UI
thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:33:33 +03:00
selikhovandClaude Opus 5.5 6843d1ba0b Document the decoded-picture step of the negotiation ladder
The audit row of the viewer's codec and the transport section say how a
codec that never decodes is left out (Viewer, StreamUndecodable,
video_undecodable), media.md under Viewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:28:31 +03:00
selikhovandClaude Opus 5.5 8955ceb95f Reach wss:// gateways: TLS in the gateway client
The gateway client was built without TLS, so every wss:// gateway, the
setup docs/gateway-admin.md recommends and what a _tsgws._tcp record
names, failed with "TLS support not compiled in". tokio-tungstenite now
uses rustls with the system's certificates; rustls and its crates were
in the tree already (reqwest), so nothing new is downloaded.

Checked end to end against the TeamSpeak 6 dev server: tsgw behind a
TLS terminator with a certificate from a throwaway CA, the login over
wss:// works when the CA is trusted (SSL_CERT_FILE) and is refused with
UnknownIssuer when it is not. Android has no system store to read, so
wss:// stays out of reach there; the docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:25:24 +03:00
selikhovandClaude Opus 5.5 9d093e6561 Merge the development branch: Wave 5B's phone screens and quick-share sound
Both sides kept. From the development branch: the phone's voice channel
screen, the pages over it (pins, topics, members), the voice button in
the phone's top bar, the quick share's mixer and picker, invite links,
viewer counts, the studio's cameras and RTMP output, and the Android
pieces.

The phone's top bar keeps this wave's search button next to the voice
button and the bell (the bell opens the notifications panel); its tabs
mark Home also on the friends, messages and Library pages and Servers on
a server's events page. The phone shell shows both sides' pages: this
wave's friends, messages, events and Library pages with their back
button, and the development branch's voice channel screen, which hides
the bottom navigation as before.

Home keeps this wave's page, which maps the design onto TeamSpeak as
decided for it (friends' presence across servers, the latest chats of
every server, live streams of all servers); the development branch's
interim home (people on the current server, its chats, its streams)
gives way to it. Its server cards still switch the phone to the Servers
tab through Nav.show. A server item keeps this wave's detail and flavor
with the development branch's wording of `live` (streams on the server).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:20:20 +03:00
selikhovandClaude Opus 5.5 a990b7c49b Merge claude/gifted-lovelace-1crlx2 (the decoders) into the negotiation work
The development branch gained FFmpeg's decoders and the decoder ladder.
Conflicts only in text: the changelog keeps both entries, media.md the
H.264 profile ladder next to the new VideoPipeline description, the
interop README both sets of Chromium findings, and browser_codecs.rs
both the per-format viewer sink and the new pipeline test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:20:17 +03:00
selikhovandClaude Opus 5.5 297dc2fe5b voelin-stream: announce at most the 16 bits a TS6 server keeps
Probed against the TeamSpeak 6 dev server (6.0.0-beta13.1): `setupstream`
takes any bitrate and enforces none, but keeps it in 16 bits, so 100000
kbit/s is announced to the channel as 34464 and 4294967296 as 0. A stream
of more than 65.5 Mbit/s would have been announced as a small, wrong
number.

`proto::setup` now announces at most 65535 kbit/s
(`MAX_ANNOUNCED_BITRATE`); a 60 Mbit/s stream is announced as 60000, as
it is. The peers keep sending the real rate: nothing between them reads
the announcement. The probe and its results are in the protocol notes,
and the old "TeamSpeak caps streams at 10 Mbit/s" is corrected where the
code claimed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:19:50 +03:00
selikhovandClaude Opus 5.5 cf5151d10b Merge the development branch: decoders, watching from the channel list
Brings the FFmpeg decoder ladder and watching a streaming user's stream
from the channel list. app.rs kept both sides: the identity import
before the identity is chosen (with the development switches read
there) and the video's decoder preference from the settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:19:46 +03:00
selikhovandClaude Opus 5.5 dfec897794 Add a server with its address alone
The add-server dialog asked for a name, the address with a port, a
nickname, a gateway URL and ServerQuery settings before anything could
be saved. Now it asks for the address (host, host:port, IP or server
nickname; the resolver finds the port) and an optional server password;
the rest is under an Advanced disclosure, open when editing. Empty
fields are filled in: the name is the address until the first
connection, then the server's own name; the nickname is the default
identity's (one imported from TeamSpeak keeps its nickname), else the
system user's; the default identity, no default channel; the gateway is
looked up in DNS (voelin_core::discover) when the server is saved
without one and when it connects, and one found is stored as if typed.
Editing keeps what the form does not show (identity, default channel,
client version, the query's server port), which saving dropped before.

The form-to-bookmark conversion is a pure function with tests. New
development switch bookmark:edit opens the current server's dialog;
docs/ui.md describes the dialog, with the desktop screenshot redone and
a phone one added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:14:41 +03:00
selikhovandClaude Opus 5.5 ad42f05a9e architecture.md: DTLS 1.3 saves a round trip, it does not add one
The audit's reason for leaving DTLS 1.3 off read as if 1.3 cost a round
trip; its handshake saves one. The point stands: that is all it would
bring, against an untried official client and no version step on a
failed handshake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 03:02:42 +03:00
selikhovandClaude Opus 5.5 ecb60bd0e4 Measure AV1 at 1440p60 through every AV1 decoder
The official client sends AV1 from GPUs that encode it, so the decoders'
measurement covers it too: streams from av1_vaapi (hardware, as the
official client's AMF) and SVT-AV1 at 2560x1440 and 60 fps, decoded by
every decoder of the AV1 ladder and compared with dav1d's pictures. All
600 pictures from each, the same: av1_vaapi 301-309 fps, libdav1d (8
threads) 412-426 fps, libaom 240-286 fps (release build, RX 7900 GRE,
FFmpeg 9.0.1). The H.264 measurement shares the helpers now, and its
table in media.md gives the range of two runs on a desktop in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:33:33 +03:00
selikhovandClaude Opus 5.5 4338ed3414 Audit where Voelin negotiates, and document the new ladders
architecture.md gets "Negotiation: best first, then fall back": every
place Voelin agrees on parameters with a peer or a system component
(codecs both ways, H.264 profile and level, SRTP, DTLS, ICE, the stream
connection, simulcast, feedback, socket buffers, loss repair, Opus, WHIP,
the gateway, the client version, capture and encoder backends), its
ladder, what counts as not accepted (refused in the negotiation or found
failing at runtime), and whether it was already so, changed now, or not
done and why. The transport section describes the stall checks and the
mDNS candidates.

AES-GCM first and DTLS 1.3 stay off, with the evidence: both work with
headless Chromium 152 and the SRTP fallback is proven to trigger, but
the streamer's half needs the official viewer to answer a reconnectOffer
it did not ask for, which nothing shows yet. The protocol notes say how
to find out with the official client; they and the interop README record
the Chromium findings (mDNS responder, DTLS 1.3, receiver reports when
SRTP fails).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:30:04 +03:00
selikhovandClaude Opus 5.5 a8b674ce03 docs: FFmpeg's decoders, the ladder, what a viewer accepts now
media.md describes the decoders (hardware through FFmpeg's hwaccel API,
then FFmpeg's software ones, then the built-in ones), hw_device_ctx and
how it is found, the self-test clips, the ladder on this machine, the
settings, the pipeline's fallback and loss recovery, the measurements of
H.264 with B-frames at 1440p60, and what was tested where (VA-API on the
RX 7900 GRE, the browser interop; NVDEC, D3D11VA, DXVA2 and VideoToolbox
only type-checked or not at all). The protocol notes say what Voelin now
accepts from official streamers and why their H.264 decoded so badly
before (OpenH264 and B-frames).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:28:50 +03:00
selikhovandClaude Opus 5.5 9fb5e4bebc Merge claude/gifted-lovelace-1crlx2 (Wave 5B) into the negotiation work
The base moved on (the phone and Android wave, the quick share's sound,
voelinctl subscribing to every channel); it merges without conflicts
and the negotiation changes build and pass on top of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:25:00 +03:00
selikhovandClaude Opus 5.5 feaf6fa76c Find a server's gateway in DNS, like TeamSpeak finds the server
Users should not have to type a gateway URL: a server added by its address
should bring its tsgw along, the way TeamSpeak finds the voice server with
SRV _ts3._udp and TSDNS. voelin_core::discover::gateway looks at the
address's host and then each parent domain down to the registered domain,
the most specific first, for SRV _tsgws._tcp (wss) and _tsgw._tcp (ws)
records, TLS first at the same name, with the path from an optional TXT
record ("path=/v1" by default).

Without records, as TSDNS has its port 41144, the gateway itself is asked
on tsgw's default port: tsgw now answers GET /.well-known/tsgw with the URL
apps should use (listen.public_url, else the address the request came in
on), so a tsgw next to the server is found with no setup at all.

docs/gateway-admin.md says which records to publish, with examples. The
DNS lookups are injectable in the module: tests with fake SRV/TXT answers
and a local responder; the gateway's own test fetches the well-known URL
from the real router and logs in there. hickory-resolver is the version
the voice resolver already uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:24:57 +03:00
selikhovandClaude Opus 5.5 2cd03ddb8e Merge the development branch: Wave 5B's phone screens and dialogs
Brings the phone screens and dialogs, the quick share's sound and the
voelinctl stream commands of every channel in before the add-server
dialog changes, so they are made on top of the current dialogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:21:12 +03:00
selikhovandClaude Opus 5.5 0b2d2d776d Merge Wave 5B: the phone, Android, and the quick share's sound
The phone's voice channel screen (mockup 02), Home and bottom navigation;
Android cameras through Camera2, the screen shared into MediaCodec's input
surface without a copy, notifications with working actions, "Share to
Voelin"; the multi-select audio picker with app icons; and, asked by the
user, the quick share's sound: the share dialog shows the studio's mixer
rows (meter, gain, mute) for `stream.audio_sources` and its picker, and a
running share follows changes live. docs/android.md rewritten.

Conflicts: both waves gave studio cameras a new backend (Windows Media
Foundation from Wave 6A, Android Camera2 here); both are kept, in the
docs and code. The Windows build caught what the merge could not: each
side's `Capture` initializers lacked the other's field, and Media
Foundation cameras lacked `Camera::mirrored` (webcams face the user, so
true). Checked: fmt, clippy (host, x86_64-pc-windows-gnu for voelin-media,
both Android runs), and the tests of stream, media, core, ui, android and
voelinctl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:20:29 +03:00
selikhovandClaude Opus 5.5 3daccb7fd6 Import the official client's identities on every start
Switching clients should not mean a new unique id. On every start the app
now does what `voelinctl identity import --auto` does: identities in the
official TeamSpeak 3/6 clients' databases that Voelin does not have yet
are added, the files opened read-only and immutable as before. The
identity the official client uses by default (field 5 of its payload, now
read into `Found::selected`) goes in first, so when Voelin has no identity
of its own yet, that one becomes Voelin's default and servers see the same
unique id; an existing default stays.

What was imported is shown once in the status line (the toast on
desktop), by nickname. The runtime setting
identity.import_from_teamspeak (default on) turns it off; the sample data
of VOELIN_DEMO_UI never imports. The settings are now opened before the
identity is chosen. Tested with synthetic databases only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:18:19 +03:00
selikhovandClaude Opus 5.5 675a057153 Document the H.264 profile ladder and the socket buffers
media.md: H.264 offered as Constrained High then Constrained Baseline,
one encoder per format viewers chose, and the tests that prove it (the
SPS profiles, a Baseline-only viewer, headless Chromium answering the
Baseline entry). The protocol notes and the interop README record what
Chromium 152 does with the ladder; architecture.md the socket buffers
and how losses are repaired, with the measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:57:23 +03:00
selikhovandClaude Opus 5.5 b393175333 docs: the studio screenshots as the studio looks now
They were taken before the Share button's menu took over from the
separate Stream Studio buttons and before the phone's studio lost the
bottom bar, so they showed a top-bar button that is gone, the bar and
the old Chat tab. Taken again headless (desktop 1440x1000, its window
1600x1000, phone 390x844 and 390x1250).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:57:08 +03:00
selikhovandClaude Opus 5.5 995ea204a6 Android: build with the build-tools the workflows install; this wave in the docs
The release workflow and the Docker build install build-tools 36.0.0, as
docs/android.md asks, but AGP 8.13 wanted its default, 35.0.0: it
installed that one itself where the SDK licences were accepted, and
elsewhere the build stopped. app/build.gradle.kts now pins 36.0.0, and
the debug APK (arm64-v8a and x86_64) builds with an SDK that has only
platform 36, build-tools 36.0.0 and the NDK 27.3: the Gradle 8.14.3
wrapper on Temurin JDK 17, Kotlin without warnings.

docs/android.md had none of this wave: the voice notification as the
app's voice card (Mute, Deafen, Leave, tap to open the voice screen), the
live stream's notification, the screen drawn straight into the encoder's
input surface and the reader for simulcast, the app picker with icons,
Camera2 cameras with the CAMERA permission, Share to Voelin, what was
tested where (the Rust sides, headless screenshots, compile-only parts),
a known gap (no camera foreground service) and how to try it on Waydroid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:56:58 +03:00
selikhovandClaude Opus 5.5 318850fcd8 voelin-ui: pick and mix the quick share's sound as the studio does
The "Share screen" dialog had one switch for sound, "Share system audio",
which shared whatever stream.audio_sources held: changing what the
stream carries (an application, the microphone, desktop audio without
Voelin) or how loud meant the Stream Studio or the settings, and a
running share never followed.

The dialog now shows the studio's audio mixer while the switch is on
(off still means no audio at all): the studio's MixerRow for each source
(meter, gain, mute, the menu) and Add, which opens the studio's
PickDialog over the dialog to switch several sources on and off. They
read the main window's StudioBridge, filled without starting the studio
(App::mixer_show). Starting a share hands the sources with their gain
and mute to the capture (CaptureRequest::audio_sources); the stream
announces sound only when there is some. While it runs, the dialog
shows the same rows with the share mixer's meters, about 15 times a
second (the share keeps the timer), and every change of
stream.audio_sources, from the dialog or anywhere else (the settings
change event), goes to the running capture at once through
Capture::follow_audio, which reconfigures the streamer. A share started
without sound has no audio track, so the dialog says so instead.

The studio's rows and meters follow whichever streamer goes out: a quick
share's while one runs, else the studio's encoder. The picker's
application list is let go once neither the dialog nor the studio needs
it. With sample data, VOELIN_OPEN=share:live shares the test pattern
with the sample studio's sources, live at once with sample viewers, and
Stop ends it, as the studio's demo does. On a phone the frame-rate and
bitrate fields of the dialog no longer run past its edge.

Tests: capture_request carries the picked sources with gain and mute,
and nothing with the switch off or no sources; a running capture on the
test pattern follows changed sources, keeps a silent track when all are
removed, and one started without sound stays so. Headless screenshots
of the dialog before and during a share, 1440x900 and 390x844.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:45:17 +03:00
selikhovandClaude Opus 5.5 1c6251e7b7 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>
2026-10-03 22:24:13 +03:00
selikhovandClaude Opus 5.5 b370649421 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>
2026-10-03 22:18:38 +03:00