mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
web: stream tiles for the channel, clickable tree icons, camera vs. screen
- Streams in our own channel show up in the grid (corner and pop-out) as tiles with a "Watch" button, Discord-style, before anyone opens them. - Stream icons moved to the right side of the client row, next to the group icons, and a click opens that stream; 📷 for a camera (setupstream type 1), 🖥️ for screen/window. Same icons in tiles and context menu. - Stream infos and watched streams are keyed by stream id instead of clid, since one client can now send screen and camera at once; the context menu lists one entry per stream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
ebe162fafb
commit
e923181e14
5 files changed
+162
-45
No files matched your search
@@ -43,6 +43,8 @@ export interface StreamInfo {
|
||||
viewers: number;
|
||||
hasAudio: boolean;
|
||||
bitrate: number;
|
||||
/** `type` 1 (CAMERA) vs. screen/window; undefined when the notify left it out. */
|
||||
camera?: boolean;
|
||||
}
|
||||
|
||||
export interface StreamViewerOptions {
|
||||
@@ -86,6 +88,7 @@ export function parseStreamInfo(args: Record<string, string>): StreamInfo | null
|
||||
viewers: Number(args.viewer ?? 0) || 0,
|
||||
hasAudio: args.audio === "1",
|
||||
bitrate: Number(args.bitrate ?? 0) || 0,
|
||||
camera: args.type === undefined ? undefined : args.type === "1",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user