New issue
Advanced search Search tips

Issue 837587 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 834581
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



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.
 

Comment 1 by guidou@chromium.org, Apr 27 2018

Does it work for you if you start chrome with --disable-features=MediaDevicesSystemMonitorCaching ?
Yes that does seem to avoid the issue.

Comment 3 by guidou@chromium.org, Apr 27 2018

Can you reproduce the problem in Dev 67.0.3396.18?

Comment 4 by guidou@chromium.org, Apr 27 2018

Labels: Needs-Feedback
The bug does seem to be fixed in 67.0.3396.18 - I normally don't test dev but thanks.
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 27 2018

Cc: guidou@chromium.org
Labels: -Needs-Feedback
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

Comment 7 by guidou@chromium.org, Apr 27 2018

Mergedinto: 834581
Status: Duplicate (was: Unconfirmed)
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