You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "AkshatJain12 (via GitHub)" <gi...@apache.org> on 2023/07/25 00:51:46 UTC
[GitHub] [cordova-android] AkshatJain12 opened a new issue, #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
AkshatJain12 opened a new issue, #1637:
URL: https://github.com/apache/cordova-android/issues/1637
<!------------^ Click "Preview" for a nicer view! -->
###
**Problem**
I am using the following code to get an array of all video media devices.

When I package this code in the cordova android app, in all of the android devices, the above code returns empty labels.
Please see the below screenshot of the output:

However, if I run my application in chrome browser of the same android phone, I am able to see the labels correctly.

---
### **What is expected to happen?**
The labels should not be blank for android apps
---
### **Information**
Device: All Android devices: Android Galaxy S21, Pixel 4a, Galaxy S7, OnePlus 8 Pro
OS: Android
Version: Android 8-13, tried all versions
Note:
We are using voltbuilder to create andorid app, config file used to pass cordova details to voltbuilder as follows:
https://onedrive.live.com/?authkey=%21AGU9mKQgna2yhek&cid=513DCD6F223F0404&id=513DCD6F223F0404%21110&parId=root&o=OneUp
Checklist
- [ ✔] I searched for existing GitHub issues
- [✔ ] I updated all Cordova tooling to most recent version
- [✔ ] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek commented on issue #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1637:
URL: https://github.com/apache/cordova-android/issues/1637#issuecomment-1650473527
This is not something I use so I'm not familiar with the plugin, but I think you may want to check out the [cordova-plugin-media-capture](https://github.com/apache/cordova-plugin-media-capture) plugin. It has some APIs to get some configurations but... I don't think it includes devices like determining if a particular camera is supported.
If that's what you're after, you may need to create a plugin to interface with the native API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] AkshatJain12 commented on issue #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
Posted by "AkshatJain12 (via GitHub)" <gi...@apache.org>.
AkshatJain12 commented on issue #1637:
URL: https://github.com/apache/cordova-android/issues/1637#issuecomment-1650438947
Hi @breautek , thanks for your detailed reply. I will reach out to Chromium for this.
By any chance, do you happen to know if there is any cordova plugin/api using which I can get the deviceId of a back camera of an android phone?
I am thinking instead of using navigator.mediaDevices api, if I can get this information from cordova directly, that would solve most of my problems.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek commented on issue #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1637:
URL: https://github.com/apache/cordova-android/issues/1637#issuecomment-1648837519
This is not something that Cordova implements and this behaviour appears in the standard android webview (which is different build & product of the Chrome browser, although they are both derived from the Chromium project). Tested on an API 33 emulator in a raw webview environment, not using the Cordova framework.
If you feel like this is a bug, I'd probably raise an issue in [Chromium's Issue Tracker](https://bugs.chromium.org/p/chromium/issues/list?q=component%3AMobile%3EWebView&can=2). They'll at least can give you an explanation on why in the webview the labels are empty if that's the actual expected result.
I'm closing this because I don't believe it's something that is actionable by Cordova, however if the folks over at Chromium says that it should work and the webview just needs some configuration or something, just let us know with the details and someone can reopen the issue and investigate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek closed issue #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #1637: Empty labels are returned when using navigator.mediaDevices.enumerateDevices api in all android devices
URL: https://github.com/apache/cordova-android/issues/1637
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org