/cordova-plugin-android-enumeratedevices

Cordova Android plugin exposing the audio and video devices connected

Primary LanguageJavaApache License 2.0Apache-2.0

cordova-plugin-android-enumeratedevices

Cordova Android plugin exposing the audio and video devices connected

We develop this plugin with the aim of fix the empty devices labels in ionic Android using de android webview WebRTC API. We got the labels with the native code but the devices id's were quite different with the WebRTC API that the ionic webview provide us. This is why we were not able to joint the labels with the devices.

Inferring that the devices returned by WebRTC API and by the native code (plugin) arrive in the same order, we match the labels with the id's in the ionic app side.

Just calling to

cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(devices => console.log(devices));