fix: switch backup codec to VP8@30fps, dim H.264 pill with warning

- Backup codec changed from H.264 (OpenH264, slow) to VP8 (libvpx,
  fast) — same encoder family as VP9, lower dual-encode overhead
- Backup capped at 30fps with proportional bitrate to keep CPU
  overhead low during SIMULCAST dual-encoding
- H.264 pill visually dimmed with amber warning when selected
This commit is contained in:
Jannis Braun
2026-03-24 01:14:47 +01:00
parent a54dd9084a
commit e53d3bcb98
2 changed files with 17 additions and 9 deletions
@@ -193,7 +193,11 @@ export function ScreenShareSettingsPopover({ open, onClose, anchorRef }: ScreenS
<button
key={c.value}
onClick={() => setConfig({ codec: c.value })}
className={`${pillBase} ${config.codec === c.value ? pillSelected : pillUnselected}`}
className={`${pillBase} ${
config.codec === c.value
? (c.value === 'h264' ? 'bg-accent-amber/60 text-white' : pillSelected)
: (c.value === 'h264' ? 'bg-surface-elevated/50 text-txt-tertiary hover:bg-interactive-hover' : pillUnselected)
}`}
>
{c.label}
</button>
@@ -201,7 +205,7 @@ export function ScreenShareSettingsPopover({ open, onClose, anchorRef }: ScreenS
</div>
{config.codec !== 'vp9' && (
<div className="text-[10px] text-accent-amber/80 mt-1">
VP9 is recommended for most setups
Not recommended uses slower software encoder
</div>
)}
</div>