-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you access this information? #1
Comments
I added your plugin, added the necessary includes and it did not do anything. So just in case the @requiresAPI and @targetapi were causing it to be ignored I commented those out. Still did not do anything. enumerateDevices still has empty labels. Any help would be appreciated. |
FYI if i open a web page using https in chrome on the same device, the labels are there. I can also open that web page using window.open('..','_system') and it works, but I cannot find any way to get the data from the web page back to the cordova app. |
Hello @alindzon , With the aim of fix the empty devices labels in ionic Android using de android webview WebRTC API, we develop this plugin. 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 You will be able to get the information. Regards |
thank you, worked perfectly. You should add this to the read-me. |
I noticed some device types were not being detected so I updated your switch statement to support more types such as speakerphone.
now I get this output on my samsung phone for example. The list includes devices that are not even present at the moment like the earbuds. And I cannot figure out any way to map these audio device labels to the APIRTC devices which don't have any labels on Android because of this issue. If you have any idea how I can map devices to get the correct label into the list returned by apirtc, that would be great. For the cameras they just appear to be reversed, so I might be able to use those. from navigator.mediaDevices.enumerateDevices from apirtc which are the ids I need to use |
Sorry, but just looking at the plugin I am not clear how I can access the labels etc...
does it just replace enumerateDevices()?
The text was updated successfully, but these errors were encountered: