ui: the stream viewer's controls hide while you watch
The controls fade 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, and on a touch screen a tap on the picture shows or hides them. A status or the stream's end keeps them, and so does a pointer that was never over the picture, so screenshots still show them. In the shell the streamer, title, viewers, LIVE and the quality move from the picture into the header, so nothing covers the picture at rest; in full screen (and on the phone) they stay over it under a taller, darker shade and hide with the controls. The streamer's avatar now comes from the engine's cache for any streamer, also one outside our channel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
1 parent
e1b4a207c5
commit
0aee710c19
7 files changed
+321
-182
No files matched your search
@@ -1004,11 +1004,14 @@ export global Bridge {
|
||||
in property <image> viewer-frame;
|
||||
in property <bool> viewer-has-frame;
|
||||
in property <string> viewer-title;
|
||||
// Who streams it (their client id: -1 unknown).
|
||||
// Who streams it, and their avatar as the members show it: their
|
||||
// picture, else their initials on their colour.
|
||||
in property <string> viewer-streamer;
|
||||
in property <image> viewer-streamer-avatar;
|
||||
in property <string> viewer-streamer-initials;
|
||||
in property <color> viewer-streamer-tint;
|
||||
// The voice channel the watched stream is in.
|
||||
in property <string> viewer-channel;
|
||||
in property <int> viewer-streamer-id: -1;
|
||||
// Shown instead of (or over) the picture: waiting, ended, errors.
|
||||
in property <string> viewer-status;
|
||||
in property <string> viewer-info;
|
||||
@@ -1135,6 +1138,9 @@ export global Bridge {
|
||||
callback leave-stream();
|
||||
callback set-stream-volume(float);
|
||||
callback toggle-fullscreen();
|
||||
// Show or hide the pointer over the window: the player hides it with
|
||||
// its controls in full screen.
|
||||
callback show-cursor(bool);
|
||||
// A simulcast layer of the watched stream (0: Auto).
|
||||
callback set-stream-quality(int);
|
||||
|
||||
|
||||
Reference in new issue
Block a user