ui: a theatre mode for the stream viewer
What "pop out" did, filling the window without the shell, is now theatre mode (Nav.theatre) with a button of its own in the player. The chat stays under the picture, the members button goes, and it ends with the viewer; a narrow window keeps the phone layout. Escape leaves full screen, then theatre mode: the window's keys take the focus when the viewer moves to the whole window, into full screen or from it back to theatre mode, since what had it is gone. Until the viewer gets a window of its own, Pop out toggles theatre mode too, and VOELIN_OPEN=popout is watch,theatre. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
9 files changed
+98
-19
No files matched your search
+3
-2
@@ -174,7 +174,7 @@ comes from the engine's events; what a gateway adds is hidden without it.
|
||||
| Pinned messages | `pins` | In the members panel's place: cards with author, time, text, files and reactions; the pin unpins, a click jumps to the message | `Gateway` `Pins`, `Pinned`, `Unpinned`; `GatewayRequest::Pins`, `Unpin` |
|
||||
| Topics | `topics`, `topic:<id>` | In the members panel's place: search, cards with the message count, creator and last activity, Create Topic; an open topic replaces the chat's messages and takes replies | `Gateway` `Topics`, `Topic`, `TopicHistory`; `GatewayRequest::Topics`, `TopicHistory`, `CreateTopic`, `Post` |
|
||||
| Voice channel | `voice`, `voice:compact` | Title, topic, "5 in voice / 50 total", Copy invite link (a `ts3server://` link to the channel; the phone's Invite button does the same), the members button, Smaller stage / Larger stage, Chat only; the people as large avatars (talking ring and bars, muted, crown, streaming); the streams as cards (the streamer's avatar on a painted scene in their colour, or the picture while watched, and our own from the Stream Studio its preview: `studio:live,server,voice`; LIVE, viewers, kind, bitrate, sound, Watch Stream); the call bar: mute and deafen (red while on), share (its menu opens above it), the voice settings and Leave; the channel's chat. The smaller stage (`ui.voice_compact`, and always in windows under 800 px tall, where its button is disabled) is one row of small avatars, scrolling sideways, and the streams as rows (Watch, Show), so the chat gets about 200 to 240 px more | `Presence`, `Talking`, `StreamsChanged`, viewer counts from `StreamsChanged`, else the `Gateway` stream directory |
|
||||
| Watching a stream | `watch`, `popout` | A header (on our channel's background) with the streamer's avatar, the title, the streamer and viewers, LIVE, the picture's height (the simulcast picker when a Voelin streamer offers layers), the members button and Leave; the player, with nothing over the picture but its controls: volume, elapsed time, what arrives (codec, size, frame rate, bitrate), back to the chat, pop out, full screen. The controls hide 2.5 s after the pointer last moved over the picture and come back when it moves (in full screen the cursor hides with them; on a touch screen a tap on the picture shows or hides them); while waiting for the picture and after the stream ended they stay, and so do they before the pointer was ever over the picture, as in screenshots. Then a note that the stream belongs to the channel; the channel's chat and a Stream Info tab. Popped out it fills the window, without the members button. In full screen (and on the phone outside the voice screen) the player is alone, with the streamer, title, viewers, LIVE and the quality over the picture's top, hiding with the controls | `WatchState`, `WatchLayers`, decoded frames and their stats (`src/video.rs`), `StreamsChanged` (viewer counts; the `Gateway` stream directory where the server gives none) |
|
||||
| Watching a stream | `watch`, `watch,theatre`, `popout` | A header (on our channel's background) with the streamer's avatar, the title, the streamer and viewers, LIVE, the picture's height (the simulcast picker when a Voelin streamer offers layers), the members button and Leave; the player, with nothing over the picture but its controls: volume, elapsed time, what arrives (codec, size, frame rate, bitrate), back to the chat, theatre mode, pop out (for now theatre mode too), full screen. The controls hide 2.5 s after the pointer last moved over the picture and come back when it moves (in full screen the cursor hides with them; on a touch screen a tap on the picture shows or hides them); while waiting for the picture and after the stream ended they stay, and so do they before the pointer was ever over the picture, as in screenshots. Then a note that the stream belongs to the channel; the channel's chat and a Stream Info tab. In theatre mode (`Nav.theatre`) it fills the window without the shell or the members button, the chat still under the picture; it ends with the viewer, and a narrow window keeps the phone layout. Escape leaves full screen, then theatre mode. In full screen (and on the phone outside the voice screen) the player is alone, with the streamer, title, viewers, LIVE and the quality over the picture's top, hiding with the controls | `WatchState`, `WatchLayers`, decoded frames and their stats (`src/video.rs`), `StreamsChanged` (viewer counts; the `Gateway` stream directory where the server gives none) |
|
||||
|
||||
The pins and topics share the place of the members panel: opening one
|
||||
closes the other, and the members button brings the panel back. On the
|
||||
@@ -508,7 +508,8 @@ Environment variables (see `src/dev.rs`):
|
||||
it, or in voice on its server a move; Adding a server: Links), `unread` (the
|
||||
current chat read up to five messages before its end: the New line,
|
||||
scrolled up to; `unread:end` ten messages before, at the end of the list,
|
||||
under the bar that counts them), `watch`, `popout`
|
||||
under the bar that counts them), `watch`, `theatre` (after `watch`:
|
||||
theatre mode), `popout` (for now the same as `watch,theatre`)
|
||||
(the server page, above), `tab:<home|servers|chat|activity|you>` (phone
|
||||
layout); `friends[:<uid>]`, `messages[:<uid>]`, `inbox`, `offline`,
|
||||
`library`, `events`, `event-form`, `search[:<text>]`, `notifications`,
|
||||
|
||||
Reference in new issue
Block a user