Skip to content

Audit Bluetooth audio routing during recording (headset mic, media playback) #25

Description

@Pivii

Context

Android currently uses default AudioManager routing with no explicit Bluetooth handling. On iOS this caused real bugs: HFP (.allowBluetooth) hijacked AirPods play/pause and degraded quality; the fix was A2DP-only output + built-in mic (v1.6.0-beta.1 #85), plus an earpiece-routing fix (#96).

The Android equivalent question: when a BT headset is connected, does AudioRecord with MediaRecorder.AudioSource.MIC use the (low-quality SCO) headset mic or the built-in mic? Does music keep playing / duck properly?

What to do

  1. Test matrix: BT earbuds + music playing, BT earbuds idle, wired headset, no headset — on Pixel 4
  2. Decide policy (recommendation: built-in mic for quality, like iOS; don't start SCO)
  3. Implement explicit routing if defaults are wrong (setPreferredDevice, avoid startBluetoothSco)
  4. Verify media keys / playback aren't hijacked during recording

Acceptance criteria

  • Documented behavior per scenario (comment on this issue)
  • Recording quality is consistent with and without BT devices connected
  • Music resumes/ducks correctly around a dictation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestios-parityiOS v1.7.1 parity catch-up

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions