Release 3.2.0
Main Change
Fix Some Bluetooth Issue
android: support chooseAudioRoute() and onAudioDeviceChanged event
Android Only: chooseAudioRoute() let user choose their own audio route
param: "EARPIECE", "SPEAKER_PHONE", "WIRED_HEADSET", "BLUETOOTH"
if a audio device is unavailable, it will do nothing.
if success, it will return a promise contains an object like
onAudioDeviceChanged
's data below.
onAudioDeviceChanged Event
Will fire event to JS, indicating current available audio devices.
and current selected audio devices. your UI can display available options
according to these data.
Note for writableArray issue,
availableAudioDeviceList
is a JSON Array String
so you need to JSON.parse()
it before you use it as an array object in js
example:
{
"availableAudioDeviceList": "[\"EARPIECE\", \"SPEAKER_PHONE\"]",
"selectedAudioDevice": "SPEAKER_PHONE",
}
Change Log
f8fe3a4 release 3.2.0 ( zxcpoiu 2018-04-10 20:45:12 +0800)
a771228 android: refactor audio route logic to fix some bluetooth bug ( zxcpoiu 2018-04-10 17:16:34 +0800)
63e0456 readme: Change indentation of android manual linking step 2 ( Gordon H Graham 2018-03-26 10:02:37 -0600)
a9f31d2 android: fix to prevent invoke .name()
on a null enum ( zxcpoiu 2018-03-26 15:58:08 +0800)
7931e77 android: support chooseAudioRoute() and onAudioDeviceChanged event ( zxcpoiu 2018-03-20 16:05:48 +0800)
335540e android: IllegalStateException when calling unregisterReceiver() (#72) ( lrorthmann 2018-02-26 06:15:03 -0300)
e06cd60 release 3.1.0 ( zxcpoiu 2018-01-26 17:34:45 +0800)
a76c8ba android: start proximity sensor anyway ( zxcpoiu 2018-01-26 17:26:45 +0800)
b63414b android: fix broken forceSpeakerOn ( zxcpoiu 2018-01-25 20:26:51 +0800)