Re: [mediacapture-output] restore default audio output position first in the enumerateDevices() returned list (#154)

Proposal:
When the physical device that is currently the system default audio output is exposed, order the "list of device info objects" such that this physical device is the first "audio-output" object, before the new deviceId:"default" object for the virtual device.

This would provide an ordering that is distinguishable from that with a placeholder virtual device info object for https://github.com/w3c/mediacapture-output/issues/133, which would be the first in the list when the currently default physical device is not exposed.
Although https://github.com/w3c/mediacapture-main/pull/1057 added a default virtual device only when the currently default physical device is exposed, https://github.com/w3c/mediacapture-output/issues/133 proposes adding a similar virtual device when the currently default physical device is not exposed.
If the virtual device were in the first position in both cases, then the position of the second "audio-output" device info object would not necessarily mean that it is the currently default physical output device.


-- 
GitHub Notification of comment by karlt
Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/154#issuecomment-3404387296 using your GitHub account


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

Received on Wednesday, 15 October 2025 03:31:48 UTC