Using "Android System WebView" (versionCode=451511501) on an Android R device, and running the system_webview_shell APK. I run the following JS code (I load wikipedia home page in the app and use remote debugging to execute JS code):
navigator.mediaDevices.getUserMedia({ audio: true, video: true })
.then(stream => console.log(stream), error => console.error(error));
navigator.mediaDevices.enumerateDevices()
.then(x => console.log(x))
The access to the mic/webcam is granted, but the next enumeration still does not have access to the device labels, they're all empty strings.
In the logs, I can see the following when executing the second command, the first one does not have any equivalent:
11-22 19:25:53.460 12623 12623 E chromium: [ERROR:web_contents_delegate.cc(225)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
Is this supposed to work?
Running Chrome/92 (same version as system webview) on the same device does not have the issue and the device labels are available after granting permissions on the first command.
Thanks,
Michael.