Re: [mediacapture-main] Only fire devicechange event when devices physically added/removed (#688)

> A devicechange event fires, web app is falsely made aware of a new device, the built-in camera given it has now a non empty deviceId.

Sigh, that's another thing we broke by removing deviceIds pre-gUM.

Then I see no way around apps being cognizant of the fact that they'll need to call enumerateDevices() again on gUM success to update their cached list, if they're going to do device detection properly.

The remaining question is whether it makes sense to fire the `devicechange` event then.

Doing so would seem to trigger their detection code, which we just deduced will produce false positives.

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at using your GitHub account

Received on Tuesday, 28 April 2020 13:56:13 UTC