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>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-04 03:19:46 +03:00
commit 599c55fda6
37 files changed
+2842 -159

No files matched your search

+7
View File
@@ -105,6 +105,8 @@ export struct MemberCard {
muted: bool,
// The client has a unique id, so contacts and private chats work.
known: bool,
// The client streams: the card offers to watch it.
streaming: bool,
}
export struct ChatTab {
@@ -299,6 +301,8 @@ export struct ClientAudio {
name: string,
volume: float,
muted: bool,
// The client streams: the dialog offers to watch it.
streaming: bool,
}
// The appearance settings (`ui.*` keys).
@@ -489,6 +493,9 @@ export global Bridge {
callback respond-viewer(int, bool);
callback kick-viewer(int);
callback watch-stream(string);
// Watch the stream of a client (a streaming user in the tree or the
// members), as soon as it is known.
callback watch-client(int);
callback show-viewer();
callback hide-viewer();
callback leave-stream();
+18 -1
View File
@@ -226,9 +226,26 @@ component TreeRow inherits Rectangle {
alignment: center;
SpeakingBars { }
}
// A click on someone's LIVE mark watches their stream.
if item.streaming: VerticalLayout {
alignment: center;
LiveBadge { }
LiveBadge {
accessible-role: AccessibleRole.button;
accessible-label: item.myself ? @tr("Your stream") : @tr("Watch {}'s stream", item.name);
accessible-action-default => {
if !item.myself {
Bridge.watch-client(item.id);
}
}
TouchArea {
mouse-cursor: item.myself ? MouseCursor.default : MouseCursor.pointer;
clicked => {
if !item.myself {
Bridge.watch-client(item.id);
}
}
}
}
}
if item.local-muted: Icon {
source: Icons.volume-x;
@@ -528,6 +528,15 @@ export component ClientAudioDialog inherits Modal {
Bridge.client-audio-changed(Bridge.client-audio);
}
}
if Bridge.client-audio.streaming: Button {
kind: ButtonKind.primary;
icon: Icons.monitor;
text: @tr("Watch {}'s stream", Bridge.client-audio.name);
clicked => {
Bridge.watch-client(Bridge.client-audio.id);
done();
}
}
Rectangle { vertical-stretch: 1; }
Footer {
Button {
@@ -308,6 +308,13 @@ export component MemberCardPopup inherits Rectangle {
}
}
Divider { }
if Bridge.member-card.streaming: Button {
small: true;
kind: ButtonKind.primary;
icon: Icons.monitor;
text: @tr("Watch stream");
clicked => { Bridge.member-action("watch"); }
}
HorizontalLayout {
spacing: Theme.space-2;
Button {