fix: video blink when toggling mic mute in calls #277
Reference in New Issue
Block a user
Delete Branch "userAdityaa/flotilla:video-blink"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #269, video tiles blink when muting/unmuting the microphone during a voice/video call.
Toggling mute previously updated
currentVoiceSessionwith a spread ({...session, muted}).VideoCallContentderives its video grid from that store, so every mute toggle re-ran tile rendering and causedVideoCallTileto detach and re-attach LiveKit tracks (visible flash).Mic mute state is now stored in a dedicated
voiceMicMutedwritable. 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
@@ -358,2 +361,3 @@const muted = !session.mutedconst muted = !get(voiceMicMuted)voiceMicMuted.set(muted)This can just be
voiceMicMuted.update(not)(from welshman/lib)41baa7be59tofc4fa4c297fc4fa4c297to497d14e028