[mediacapture-main] Changes to the system default audio output do not generate "devicechange" events and do not change `enumerateDevices()` results when [[storedDeviceList]] is not `null` (#809)

karlt has just created a new issue for https://github.com/w3c/mediacapture-main:

== Changes to the system default audio output do not generate "devicechange" events and do not change `enumerateDevices()` results when [[storedDeviceList]] is not `null` ==
Changes to `enumerateDevices()` results and "devicechange" events are expected when there is more than one audio output device because the order of results [should depend on which is the system default](https://github.com/w3c/mediacapture-main/issues/756).
> [If device is the system default audio output, prepend deviceInfo to otherDeviceList. Otherwise, append deviceInfo to otherDeviceList.](https://w3c.github.io/mediacapture-main/#dom-mediadevices-enumeratedevices)

[`enumerateDevices()`](https://w3c.github.io/mediacapture-main/#dom-mediadevices-enumeratedevices) uses [[storedDeviceList]] if not `null`, and so the [device change notification steps](https://w3c.github.io/mediacapture-main/#dfn-device-change-notification-steps) should be [executed](https://w3c.github.io/mediacapture-main/#ref-for-dfn-device-change-notification-steps-1) for updated results.

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/809 using your GitHub account


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

Received on Wednesday, 4 August 2021 07:22:44 UTC