W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2020

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

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Apr 2020 13:56:11 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-620623851-1588082170-sysbot+gh@w3.org>
> 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 https://github.com/w3c/mediacapture-main/issues/688#issuecomment-620623851 using your GitHub account
Received on Tuesday, 28 April 2020 13:56:13 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:50 UTC