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>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-04 03:33:33 +03:00
commit 87c8d6c686
37 files changed
+2839 -158

No files matched your search

+7
View File
@@ -111,6 +111,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 {
@@ -307,6 +309,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).
@@ -922,6 +926,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;
@@ -506,6 +506,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 {