Re: [mediacapture-main] Bug in spec: circular dependency for enumerateDevices() (#709)

From perspective here the order of operation should be `enumerateDevices()` (with accurate devices being listed https://github.com/w3c/mediacapture-main/issues/693#issuecomment-623489944, which is currently not the case when workarounds are used to select monitor devices "What-U-Hear",  Chromium refuses to start monitor devices deliberately, for which there is no specified solution, only workarounds) => `getUserMedia()`, et al. https://github.com/w3c/mediacapture-main/issues/703#issuecomment-653822239.

Something like `getSystemDevices()` (permission for _all_ devices, not just what implementers might arbitrarily decide to list, or not) => `[<all_devices_as_a_list_that_user_selects_one_or_more_from>]`  => `getUserMedia()` can access any of the listed devices selected, not un-selected devices, `enumerateDevices()` enumerates selected devices - exactly, not listing `"audiooutput"` though actually the device is just default microphone, not really audio output at all, and not listing devices not selected at `getSystemDevices()`, with implementers using the same language for descriptions or identifiers of devices. 

For backward compatibility users should be able to get a devices directly with something like

`getUserMedia({audio:{kind:{exact:'audioouput'}}})` and for that to be reliable and consistent between implementations. First, clearly define and agree on what kinds are, then if that device does not exist we can expect the ssame result at all implementations, we do not want the microphone, throw an error or exception, did not ask for audio input.

So, there are means to solve these device select issues, even within the scope of not breaking the web and existing users of `getUserMedia() - as long as the changes are consistent. Else, do not overload methods with functionality not originally intended. Create new methods to meet the requirements.

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


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

Received on Tuesday, 4 August 2020 14:18:39 UTC