Open mudioo opened 7 months ago
Hello, i am trying to get the list of all audio devices wich are connected to a android phone.
InCallManager.start({ media: "audio" }); DeviceEventEmitter.addListener("onAudioDeviceChanged", (event) => { console.log(event.availableAudioDeviceList); });
//output: ["EARPIECE","SPEAKER_PHONE"] //expected output: ["BLUETOOTH","EARPIECE","SPEAKER_PHONE"]
I am trying it with a bluetooth speaker and with airpods on a xiaomi redmi 12 phone.
you can try RNCallKeep.getAudioRoutes() or RNCallKeep.addListener('didChangeAudioRoute') and see if it gives you back the bluetooth device as expected
RNCallKeep.getAudioRoutes()
RNCallKeep.addListener('didChangeAudioRoute')
Hello, i am trying to get the list of all audio devices wich are connected to a android phone.
//output: ["EARPIECE","SPEAKER_PHONE"] //expected output: ["BLUETOOTH","EARPIECE","SPEAKER_PHONE"]
I am trying it with a bluetooth speaker and with airpods on a xiaomi redmi 12 phone.