From 1bd0fa14bc8a17886d7329580e6528f21a8aad3d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 9 Mar 2026 11:46:20 +0100 Subject: [PATCH] Streaming: Presets zeigen jetzt Bitrate statt Aufloesung Aufloesung ist immer nativ (Monitor des Broadcasters), die Presets steuern nur Bitrate und FPS. Labels entsprechend angepasst: Niedrig (4 Mbit) bis Max (50 Mbit/165Hz). Dropdown auf 200px. Co-Authored-By: Claude Opus 4.6 --- web/src/plugins/streaming/StreamingTab.tsx | 12 ++++++------ web/src/plugins/streaming/streaming.css | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/plugins/streaming/StreamingTab.tsx b/web/src/plugins/streaming/StreamingTab.tsx index de270f4..bf6fc3b 100644 --- a/web/src/plugins/streaming/StreamingTab.tsx +++ b/web/src/plugins/streaming/StreamingTab.tsx @@ -46,11 +46,11 @@ function formatElapsed(startedAt: string): string { // ── Quality Presets ── const QUALITY_PRESETS = [ - { label: '720p60', width: 1280, height: 720, fps: 60, bitrate: 4_000_000 }, - { label: '1080p60', width: 1920, height: 1080, fps: 60, bitrate: 8_000_000 }, - { label: '2K60', width: 2560, height: 1440, fps: 60, bitrate: 14_000_000 }, - { label: '4K60', width: 3840, height: 2160, fps: 60, bitrate: 25_000_000 }, - { label: '4K165 Ultra', width: 3840, height: 2160, fps: 165, bitrate: 50_000_000 }, + { label: 'Niedrig (4 Mbit)', fps: 60, bitrate: 4_000_000 }, + { label: 'Mittel (8 Mbit)', fps: 60, bitrate: 8_000_000 }, + { label: 'Hoch (14 Mbit)', fps: 60, bitrate: 14_000_000 }, + { label: 'Ultra (25 Mbit)', fps: 60, bitrate: 25_000_000 }, + { label: 'Max (50 Mbit/165Hz)', fps: 165, bitrate: 50_000_000 }, ] as const; // ── Component ── @@ -421,7 +421,7 @@ export default function StreamingTab({ data }: { data: any }) { try { const q = qualityRef.current; const stream = await navigator.mediaDevices.getDisplayMedia({ - video: { frameRate: { ideal: q.fps }, width: { ideal: q.width }, height: { ideal: q.height } }, + video: { frameRate: { ideal: q.fps } }, audio: true, }); localStreamRef.current = stream; diff --git a/web/src/plugins/streaming/streaming.css b/web/src/plugins/streaming/streaming.css index e0e6c91..9e7eb0f 100644 --- a/web/src/plugins/streaming/streaming.css +++ b/web/src/plugins/streaming/streaming.css @@ -409,7 +409,7 @@ } .stream-select-quality { - width: 160px; + width: 200px; padding: 10px 14px; border: 1px solid var(--bg-tertiary); border-radius: var(--radius);