Merge the development branch: share menu, codec order, segmentation

Brings in the Share button's menu (Share screen / Stream Studio) and the
removal of the separate Stream Studio button from the headers, the
codecs every TeamSpeak client decodes ahead of H.264, the portal fix
and person segmentation.

The phone header keeps this branch's voice-channel button and hides the
bell on the voice screen, and loses the Stream Studio button as the
development branch wants. The studio's test table takes the
segmentation rows and the Android camera row. MediaCodec follows the new
codec order with no code change (Codecs orders every hardware factory's
codecs); its description and docs/media.md now say so, including what
that means on a phone without a hardware VP8, VP9 or AV1 encoder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 20:02:47 +03:00
commit 698e5f911e
35 files changed
+24436 -224

No files matched your search

+11 -5
View File
@@ -12,6 +12,8 @@ import { StreamsPanel } from "streams.slint";
import { PinsDrawer, TopicsDrawer } from "drawers.slint";
import { MembersPanel } from "members.slint";
import { VoiceCard, VoiceButtons } from "../shells/common.slint";
import { StudioBridge } from "../studio-bridge.slint";
import { ShareMenu } from "../share-menu.slint";
// Servers as a horizontal strip, the current server, its channels.
export component MobileServers inherits VerticalLayout {
@@ -169,11 +171,15 @@ export component YouPage inherits ScrollView {
enabled: Bridge.voice-connected;
clicked => { Bridge.set-output-muted(!Bridge.output-muted); }
}
if Bridge.streams-available && Bridge.can-share: ActionButton {
icon: Icons.radio;
text: Bridge.share-state == "live" ? @tr("Live") : @tr("Go Live");
checked: Bridge.share-state == "live";
clicked => { Nav.open-share(); }
// A screen or the Stream Studio (ShareMenu).
if Bridge.streams-available && Bridge.can-share: VerticalLayout {
live := ActionButton {
icon: Icons.radio;
text: Bridge.share-state == "live" || StudioBridge.status.live ? @tr("Live") : @tr("Go Live");
checked: Bridge.share-state == "live" || StudioBridge.status.live;
clicked => { share-menu.open(0, - live.height - share-menu.menu-height - 4px); }
}
share-menu := ShareMenu { }
}
ActionButton {
icon: Icons.phone-off;
+42
View File
@@ -0,0 +1,42 @@
// What a Share button opens: a quick share of a screen or a window (the
// share dialog) or the Stream Studio. While a share runs it opens the share
// dialog right away, to manage it.
import { Theme } from "theme.slint";
import { Icons } from "icons.slint";
import { PopupMenu } from "components/index.slint";
import { Bridge } from "bridge.slint";
import { StudioBridge } from "studio-bridge.slint";
import { Nav } from "nav.slint";
export component ShareMenu inherits Rectangle {
// The menu's height, to open it above a button.
out property <length> menu-height: 2 * Theme.control-height + 2 * Theme.space-2 + 2px;
width: 0;
height: 0;
// Open at (x, y), relative to this element.
public function open(x: length, y: length) {
if Bridge.share-state == "live" || Bridge.share-state == "starting" {
Nav.open-share();
} else {
menu.show(x, y);
}
}
menu := PopupMenu {
menu-width: 220px;
entries: [
// The studio's stream takes the place of a simple share.
{ text: @tr("Share screen"), icon: Icons.monitor-up, enabled: !StudioBridge.status.live },
{ text: @tr("Stream Studio"), icon: Icons.radio, enabled: true },
];
activated(i) => {
if i == 0 {
Nav.open-share();
} else {
Nav.open-studio();
}
}
}
}
+12 -6
View File
@@ -4,6 +4,8 @@ import { Theme } from "../theme.slint";
import { Icons } from "../icons.slint";
import { Bridge } from "../bridge.slint";
import { Nav, SettingsSection } from "../nav.slint";
import { StudioBridge } from "../studio-bridge.slint";
import { ShareMenu } from "../share-menu.slint";
import { Icon, IconButton, Avatar, Status } from "../components/index.slint";
// A rounded panel of the frame (sidebar, main area, right panel).
@@ -143,12 +145,16 @@ export component VoiceButtons inherits HorizontalLayout {
enabled: Bridge.voice-connected;
clicked => { Bridge.set-output-muted(!Bridge.output-muted); }
}
if Bridge.streams-available && Bridge.can-share: IconButton {
icon: Icons.monitor-up;
label: Bridge.share-state == "live" ? @tr("Sharing") : @tr("Share screen");
checked: Bridge.share-state == "live";
size: root.size;
clicked => { Nav.open-share(); }
// A screen or window, or the Stream Studio (ShareMenu).
if Bridge.streams-available && Bridge.can-share: VerticalLayout {
IconButton {
icon: Icons.monitor-up;
label: Bridge.share-state == "live" ? @tr("Sharing") : StudioBridge.status.live ? @tr("Live in the Stream Studio") : @tr("Share or go live");
checked: Bridge.share-state == "live" || StudioBridge.status.live;
size: root.size;
clicked => { share-menu.open(0, - root.size - share-menu.menu-height - 4px); }
}
share-menu := ShareMenu { }
}
IconButton {
icon: Icons.settings;
-7
View File
@@ -218,13 +218,6 @@ export component TopBar inherits Rectangle {
}
}
}
IconButton {
icon: Icons.radio;
label: @tr("Stream Studio");
checked: Nav.page == Page.studio;
y: (parent.height - self.height) / 2;
clicked => { Nav.open-studio(); }
}
IconButton {
icon: Icons.users;
label: @tr("Members");
-9
View File
@@ -172,15 +172,6 @@ export component MobileShell inherits Rectangle {
Nav.show-voice(true);
}
}
if !root.voice: IconButton {
icon: Icons.radio;
label: @tr("Stream Studio");
round: true;
filled: true;
checked: Nav.page == Page.studio;
y: (parent.height - self.height) / 2;
clicked => { Nav.open-studio(); }
}
if !root.voice: IconButton {
icon: Icons.bell;
label: @tr("Notifications");