Skip to content

iOS: setMicrophoneEnabled still triggers audio session beep on mute/unmute #344

@fabien-hark

Description

@fabien-hark

Description

On iOS, toggling the microphone with setMicrophoneEnabled(true/false) still produces an audible iOS system beep (audio session reconfiguration sound) on each toggle.

This is the same issue as #287. PRs #1793 and #1794 in client-sdk-js fixed the mute cycling / unnecessary track restart, but the beep persists.

We also tried using mediaStreamTrack.enabled directly (bypassing LiveKit's mute), which produces the same beep.

Environment

  • livekit-client: 2.18.1
  • @livekit/react-native: latest
  • @livekit/react-native-webrtc: latest
  • iOS 18, iPhone
  • Expo / React Native

Reproduction

  1. Join a LiveKit room with audio enabled
  2. Call room.localParticipant.setMicrophoneEnabled(false)
  3. Call room.localParticipant.setMicrophoneEnabled(true)
  4. Observe iOS system beep on each call

Expected

Silent mute/unmute toggle with no iOS audio session sounds.

Workaround

Using mediaStreamTrack.enabled with a guard to skip redundant assignments reduces the beep to only actual state changes, but doesn't eliminate it entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions