Re: [mediacapture-main] Can devicechange fire prior to enumerateDevices? (#956)

Closing this as answered.

> Testing implementations, it seems that both Safari and Firefox are firing the devicechange event if getUserMedia is called but not enumerateDevices.

Note that Firefox, Chrome, and the [spec](https://w3c.github.io/mediacapture-main/#ref-for-creating-a-list-of-device-info-objects-1) also fire the devicechange event ahead of getUserMedia() in the case where the number of cameras or microphones transition to or from zero ([try it](https://jan-ivar.github.io/dummy/enumerate.html)). 

This may not be apparent on devices that have camera and microphone built in (I was unable to test Safari for this reason).

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/956#issuecomment-1725816581 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 19 September 2023 14:59:18 UTC