Skip to content

iOS microphone track publishes but sends zero audio samples #422

Description

@kirat2997

Environment:

  • @livekit/react-native: 2.11.0
  • @livekit/react-native-webrtc: 144.1.0
  • livekit-client: 2.19.0
  • WebRTC-SDK pod: 144.7559.04
  • React Native: 0.81.4
  • Expo: 54
  • Physical iPhone
  • Android works correctly

Setup:

  • AppDelegate calls LivekitReactNative.setup() before React Native init.
  • index.js calls registerGlobals().
  • iOS does not manually call AudioSession.stopAudioSession(), configureAudio(), startAudioSession(), selectAudioOutput(), or setAppleAudioConfiguration() before publishing.
  • Room connects successfully.

Symptom:
The local microphone publication appears successful:

  • source: microphone
  • muted: false
  • mediaStreamTrack.enabled: true
  • mediaStreamTrack.readyState: live
  • track SID exists

But WebRTC stats stay at zero forever while speaking:

  • media-source.audioLevel: 0
  • media-source.totalAudioEnergy: 0
  • media-source.totalSamplesDuration: 0
  • outbound-rtp.packetsSent: 0
  • outbound-rtp.bytesSent: 0

Question:
What can cause an iOS local audio track to be live and published, but the media-source stats to show zero captured samples? Is there a recommended native log or recovery path for the AVAudioEngine audio device module?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions