Skip to content

Bluetooth audio device not being used for audio output on Android #1507

@nbrustein

Description

@nbrustein

Describe the bug

When I connect to my agent from my android device, it does not use my connected Bluetooth headset for audio output.

We've tested on 3 different android devices with bluetooth headsets.

  • In one case things worked as expected
  • In another case the audio never came out of the bluetooth headset
  • In another case the audio initially came out of the bluetooth headset, but then switched and started coming from phone speakers

We experience the same issues in the following environments:

  • The Livekit playground
  • The LiveKit Agents Playground: running in mobile Chrome, connected to a simple agent running locally.
  • Web App in Mobile Chrome: utilizing:
    • @livekit/components-react version 2.9.3
    • livekit-client version 2.11.4
  • Capacitor Deployment: The same app as above, but deployed in a webview

Things work as expected on iOS devices

When running this in our own app with a debugger, I can see that the devices returned from useMediaDeviceSelect({kind: 'audiooutput'}) is empty

This issue could be related to:

Reproduction

Steps:

  • Activate bluetooth headphones
  • Confirm that audio from the app is coming through the headphones
  • Connect to agent via Livekit Playground
  • When the remote agent speaks, the audio comes out of the phone speaker rather than the bluetooth headset

Logs

System Info

System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 114.69 MB / 64.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 22.13.1 - ~/.asdf/installs/nodejs/22.13.1/bin/node
    Yarn: 4.9.1 - ~/.asdf/installs/nodejs/22.13.1/bin/yarn
    npm: 10.9.2 - ~/.asdf/installs/nodejs/22.13.1/bin/npm
  Browsers:
    Chrome: 136.0.7103.49
    Safari: 18.4

Severity

blocking all usage of LiveKit

Additional Information

No response

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