You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
android: support chooseAudioRoute() and onAudioDeviceChanged event
** 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",
}
```
0 commit comments