Issue metadata
Sign in to add a comment
|
enumerateDevices fails to list all video cameras if you add device after starting
Reported by
tgreenw...@cafex.com,
Apr 27 2018
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Steps to reproduce the problem:
1. enumerateDevices
2. Unplug a camera
3. Plug a new USB camera in
4. enumerateDevices again - camera missing from the list
What is the expected behavior?
The list contains the devices currently plugged into the machine.
What went wrong?
List isn't updated. This used to work.
Did this work before? Yes 65
Does this work in other browsers? Yes
Chrome version: 66.0.3359.117 Channel: stable
OS Version: OS X 10.13.4
Flash Version:
Restarting the browser fixes the list, until you remove or plug in a device.
We noticed this started failing in the last week when updating to 66.
I've been doing this in the browser console using:
navigator.mediaDevices.enumerateDevices().then((devices) => {window.tgdevices = devices})
window.tgdevices.filter((device) => (device.kind == 'videoinput'))
Then checking the number of items in the list match the number of devices you have.
,
Apr 27 2018
Yes that does seem to avoid the issue.
,
Apr 27 2018
Can you reproduce the problem in Dev 67.0.3396.18?
,
Apr 27 2018
,
Apr 27 2018
The bug does seem to be fixed in 67.0.3396.18 - I normally don't test dev but thanks.
,
Apr 27 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 27 2018
Note that this is not actually fixed. The builds you tried contain a patch that mitigates the problem, but does not fix it. Tracking the issue in bug 834581 . |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by guidou@chromium.org
, Apr 27 2018