Skip to content

feat: mute the mic from a bottom-right FAB while live - #26

Merged
joeblau merged 1 commit into
mainfrom
feat/mic-mute-fab
Jul 4, 2026
Merged

feat: mute the mic from a bottom-right FAB while live#26
joeblau merged 1 commit into
mainfrom
feat/mic-mute-fab

Conversation

@joeblau

@joeblau joeblau commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a floating action button (FAB) in the bottom-right corner to mute/unmute the microphone during a live broadcast.

  • Pinned to the bottom-trailing corner via an overlay on the chat feed, shown only while a broadcast is live — the one moment muting your mic matters — and springs in/out with the live state.
  • A 60pt circular Liquid Glass button (.glassEffect(.regular.interactive(), in: .circle)) that reads as a control floating above the feed. It shows mic.fill normally and swaps to a red mic.slash.fill when muted, with a symbol-replace transition.
  • Muting sets micVolume to 0 (the same "Muted" representation Settings already uses) and remembers the pre-mute level so unmuting restores your chosen gain, not unity. It persist()s and posts BroadcastControl.micVolumeSignal, reusing the exact live-apply path the Settings mic-volume slider drives — so a running broadcast responds instantly via ScreenCaptureController.applyMicVolume().

Testing

  • xcodegen generate + xcodebuild build for the Stream scheme on the iOS 27 simulator SDK: BUILD SUCCEEDED.
  • CI validates StreamCore only (GitHub runners lack the iOS 27 SDK); the FAB's live-mute behavior is verified on a physical iOS 27 device.

🤖 Generated with Claude Code

Add a floating mic mute/unmute button pinned to the bottom-trailing
corner, shown only while a broadcast is live (when muting actually
matters). It toggles micVolume between 0 and the pre-mute level and
posts micVolumeSignal, reusing the exact live-apply path the Settings
mic-volume slider already drives, so a running broadcast responds
instantly. Muted state swaps to a red mic.slash glyph.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joeblau
joeblau merged commit e2100f7 into main Jul 4, 2026
1 check passed
@joeblau
joeblau deleted the feat/mic-mute-fab branch July 4, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant