mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Three defects made the screenshare tile's volume slider ineffective: - The 0-200 slider mapped to element volume /200 clamped to [0,1], while the element attached at 1.0 — dragging the upper half did nothing. The screenshare slider is now 0-100 with 100 = 1.0 (HTMLAudioElement.volume cannot exceed 1.0; mic tiles keep the 0-200 boost range via LiveKit's GainNode-backed setVolume). - Setting a volume before the screenshare audio track attached was silently dropped. The per-user volume now persists independently of the element map and is applied on attach. - Changing the master output volume overwrote per-user screenshare volumes with just the master multiplier; they now scale together. The slider and mute button also initialize from persisted state when a tile is rebuilt, and unmuting via the button re-applies the restored volume. Fixes #121 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwtnpHAoSFr1ZibQgQkNQK