W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2021

[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)

From: Karl Tomlinson via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Aug 2021 07:22:43 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-959994224-1628061749-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 4 August 2021 07:22:46 UTC