Closed lindev0915 closed 1 week ago
fixed the label get for Wired Headset https://github.com/flutter-webrtc/flutter-webrtc/pull/1305
However, due to the device control mechanism of the Android system, when the input is selected as Wired Headset, the audio output must also be selected as the same, otherwise the input selection will be invalid
Is it possible to handle that combination automatically within our SDK? so that the user doesn't get stuck in a weird state.
My idea is to notify the default device to be switched to currentDevice
through onDeviceChange
. This event will be triggered when a wired headset is plugged in. The Android system will automatically switch the device to a wired headset, so we need to synchronize currentDevice
to our SDK and notify the user of the current audio input/output is changed by the system
In the mobile version of the new livekit sdk, the audio output/input has been taken over by the system, and you can only set whether you prefer to output from the speaker.
Describe the bug I was creating mobile app by using flutter livekit. But devices list is not working correctly. Hardware.instance.enumerateDevices() I got devices list. And it's returning like this.
[MediaDevice{deviceId: 0, label: bottom, kind: audioinput}, MediaDevice{deviceId: 1, label: back, kind: audioinput}, MediaDevice{deviceId: 2, label: , kind: audioinput}]
deviceId: 2 is wiredheadset
. And I enabled microphone and get current selectedDeviceId. room?.selectedAudioInputDeviceId It's returning headset Because it's different, can't show selected device to users To ReproduceExpected behavior