navigator.mediaDevices.enumerateDevices() fails to get video sources after a fresh FF andriod install
Categories
(GeckoView :: Media, defect)
Tracking
(Not tracked)
People
(Reporter: michael.whittemore, Unassigned)
Details
Attachments
(1 file)
867 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Steps to reproduce:
On Android, uninstall then reinstall Firefox. Then go to this codepen https://codepen.io/michaelwhittemore/pen/LYEaLjr. You should notice that only one enumerated device is listed (the audio input). However, if you then make call to navigator.mediaDevices.getUserMedia ({video:true,audio:true}) by clicking on the "try video and audio capture" button you will be prompted for both camera and microphone access. Upon refreshing the page, three enumerated devices will be listed as expected.
Actual results:
On a fresh Android Firefox installation, enumerateDevices fails to get video input devices. After requesting video with getUserMedia, enumerateDevices behaves correctly.
Expected results:
The call to enmuerateDevices should have returned the correct number of devices the first time.
Updated•5 years ago
|
I think this is working as expected. We intentionally made enumerateDevices()
not prompt for camera access and return camera devices due to fingerprinting issues. See bug 1450762.
Comment 2•3 years ago
|
||
Moving some media bugs to the new GeckoView::Media component.
Description
•