Commit Graph
16 Commits
Author SHA1 Message Date
selikhov 608bd2fbf2 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 09:28:11 +03:00
selikhovandClaude Opus 5.5 a8b0609618 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
selikhov a2333c8223 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 03:58:05 +03:00
selikhovandClaude Opus 5.5 8917f7dab2 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 392c295297 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 2ab6c0899e 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 d715444abd 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 a61d0af370 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 203921b647 voelin-ui: the phone's Go Live reads Live while the studio streams
The voice screen's Go Live button said "Go Live" while the Stream Studio
was live, as it only followed a quick share: it now reads "Live" for
either.

The phone screenshots in docs/screenshots are taken again for this
wave's screens: the voice channel with the stream on top (mockup 02),
the Activity tab, and Home, Servers, Chats, You and Settings with the
header's voice button and the bottom bar as they are now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:14:58 +03:00
selikhovandClaude Opus 5.5 5460927975 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a96f452184d5988cc
Brings in the portal dialog entry, the studio's person segmentation
(tract-onnx) and the Share button's menu. In docs/studio.md's status
table the segmentation rows join this branch's camera and RTMP rows
(RTMP is no longer a seam). docs/ui.md no longer says the engine cannot
tell a viewer the layers (a Voelin streamer lists them) nor that the
background effect has no segmentation model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:48:17 +03:00
selikhovandClaude Opus 5.5 cacb023ccf voelin-ui: open the Stream Studio from the Share button
The studio had a button of its own in the top bar (and the phone's
header), apart from the Share button. The Share buttons (the voice
buttons on the desktop, Go Live on the phone) now open a small menu:
"Share screen", the quick share of a screen or a window as before, or
"Stream Studio". While a share runs they open its dialog directly, as
before; while the studio is live, "Share screen" is off and the button
shows the live state. The separate studio buttons are gone.

Checked headless on the demo UI: the menu opens above the button, and
each entry opens the share dialog or the studio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:59:51 +03:00
selikhovandClaude Opus 5.5 0bc96437e5 Show what a watched stream delivers: size, frame rate, bitrate
A viewer could see the codec and the picture's size of a watched stream,
but not how many pictures arrived or at what bitrate, so a choppy or
starved stream looked like any other.

DecodeStats now counts the video bytes received and gives the decoded
frame rate and the received bitrate since the previous `stats()` call (at
least half a second; the watch screen asks once a second, other readers
share the same window). The watch screen shows "VP8 · 1280×720 · 30 fps ·
0.4 Mbit/s" in small text in the player's control bar, where a spacer was,
and in Stream Info.

These are read from the decoding pipeline, which runs in the app, rather
than sent as an engine event as planned: the engine never sees the decoded
pictures, and the screen already refreshes from these stats every second.

Tested: the local test pattern decodes at 20-40 fps and 0.1-5 Mbit/s
(media::tests::local_preview_decodes_the_pattern); a headless screenshot
of the watch screen with the sample stream showed the line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:20:02 +03:00
selikhovandClaude Opus 5.5 55ac7166eb Describe the Stream Studio screen in docs/ui.md, with screenshots
What each part shows, how it opens for a screenshot and what of the
engine it uses; how the window of its own shares the controller; the
studio.ui setting; the sample studio; its limits. docs/studio.md points
there and says that another background effect restarts a source's
input. The headless example also drops XDG_SESSION_TYPE, as the script
now does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 11:50:36 +03:00
selikhovandClaude Opus 5.5 b64f210975 Describe the server page in docs/ui.md; screenshots of its final state
docs/ui.md gains a section on the server page: each part (chat, members
panel, member card, pins, topics, voice channel, watching a stream), the
`VOELIN_OPEN` switch that shows it, and the engine events and requests
it uses. The settings table lists `ui.members_width`, the switches and
the screenshot script are described as they now work, and the limits say
what the design shows that we leave out (offline members, a quality
picker without layer information, a second window for the pop-out).

The screenshots are taken again so they all show the chat at its newest
message. The user card's avatar has the green ring while our voice goes
out, the speaking indicator of the compact voice controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 06:56:37 +03:00
selikhovandClaude Opus 5.5 7994c0212b Take screenshots on the Xvfb server, not on the Wayland desktop
winit prefers Wayland when WAYLAND_DISPLAY is set, so `xvfb-run` in a
Wayland session still opened the window on the desktop, where the
compositor chose its size. That looked like the X server ignoring the
requested size. Remove the variable for the screenshot run, and size the
Xvfb screen like the window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 01:56:31 +03:00
Claude f42a7c8736 docs: the UI's structure, components and screenshots
docs/ui.md describes the new UI for later work: the file layout, theme
tokens, the component catalogue, how to add a screen, the appearance
settings, how emoji are drawn, and the development switches for
screenshots. The screenshots are new (sample data from VOELIN_DEMO_UI,
256 colours); the old ones showed the previous design.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-28 02:58:20 +00:00