fix: video blink when toggling mic mute in calls #277

Merged
hodlbod merged 1 commits from userAdityaa/flotilla:video-blink into dev 2026-05-20 16:44:39 +00:00
Collaborator

Summary

Fixes #269, video tiles blink when muting/unmuting the microphone during a voice/video call.

Toggling mute previously updated currentVoiceSession with a spread ({...session, muted}). VideoCallContent derives its video grid from that store, so every mute toggle re-ran tile rendering and caused VideoCallTile to detach and re-attach LiveKit tracks (visible flash).

Mic mute state is now stored in a dedicated voiceMicMuted writable. Mute/unmute only updates that store and the LiveKit mic; video session state is unchanged unless camera, screen share, or video tracks actually change.

Video attachment

### Summary Fixes #269, video tiles blink when muting/unmuting the microphone during a voice/video call. Toggling mute previously updated `currentVoiceSession` with a spread (`{...session, muted}`). `VideoCallContent` derives its video grid from that store, so every mute toggle re-ran tile rendering and caused `VideoCallTile` to detach and re-attach LiveKit tracks (visible flash). Mic mute state is now stored in a dedicated `voiceMicMuted` writable. Mute/unmute only updates that store and the LiveKit mic; video session state is unchanged unless camera, screen share, or video tracks actually change. ### Video attachment <video src="attachments/0fa418ae-1c84-4cdc-99fa-8dc635d32805" title="Screen Recording 2026-05-19 at 10.46.55 PM.mp4" controls></video>
hodlbod reviewed 2026-05-19 23:44:23 +00:00
@@ -358,2 +361,3 @@
const muted = !session.muted
const muted = !get(voiceMicMuted)
voiceMicMuted.set(muted)
Owner

This can just be voiceMicMuted.update(not) (from welshman/lib)

This can just be `voiceMicMuted.update(not)` (from welshman/lib)
userAdityaa force-pushed video-blink from 41baa7be59 to fc4fa4c297 2026-05-20 04:58:46 +00:00 Compare
hodlbod added 1 commit 2026-05-20 16:44:33 +00:00
hodlbod force-pushed video-blink from fc4fa4c297 to 497d14e028 2026-05-20 16:44:33 +00:00 Compare
hodlbod merged commit ffd06ab561 into dev 2026-05-20 16:44:39 +00:00
hodlbod deleted branch video-blink 2026-05-20 16:44:39 +00:00
Sign in to join this conversation.