Skip to content

Android selectAudioOutputΒ #235

@Mihai-github

Description

@Mihai-github

Describe the bug

Unable to change the audio output on Android devices.

To Reproduce

Steps to reproduce the behavior:
First, configure the AudioSession with the desired configuration and start the audio session:

AudioSession.configureAudio({
   android: {
      audioTypeOptions: AndroidAudioTypePresets.communication,
   },
});
await AudioSession.startAudioSession();

Afterward, call the AudioSession.selectAudioOutput(deviceId) function by passing the desired deviceId received from calling the AudioSession.getAudioOutputs()

Expected behavior

Able to change/switch the audio output.

Screenshots

Image

Device Info:

  • Device: Samsung Galaxy S9+
  • OS: Android version 10

Dependencies Info (please reference your package-lock.json or yarn.lock file, not just your package.json):

"@livekit/react-native": "^2.6.5",
"@livekit/react-native-webrtc": "^125.0.9",
"livekit-client": "^2.9.8",

Additional context

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