Re: [mediacapture-main] enumerateDevices() should print correct MediaDeviceInfo (#693)

Video illustrating selecting a different device than selected at UI prompt and result of `enumerateDevices()` _after_ that subsequent selection. 

It should be possible to simply select "Monitor of device" at UI prompt for all implementations, instead of creating and using workarounds.

`enumerateDevices()` is listing "Built-in Audio Analog Stereo" however in this case no matter how loud the input to microphone is, microphone input _will not be_ and _is not_ captured, "What-U-Hear" https://wiki.archlinux.org/index.php/PulseAudio/Examples will be captured, which is the intended result of the workaround, `enumerateDevices()` is not listing all devices, and the initial selection is not being captured at that point.

[builtin_to_monitor_enumerate_devices.webm.zip](https://github.com/w3c/mediacapture-main/files/4575098/builtin_to_monitor_enumerate_devices.webm.zip)
```
[
  {
    "deviceId": "default",
    "kind": "audioinput",
    "label": "Default",
    "groupId": "6fe6f271fba7a948a3b8220c738015030bdb472c974cdea5988b5983baf1884e"
  },
  {
    "deviceId": "789cb9a31a628682abb878989a01bba1b566b2df9946c396dce74bc288c9b110",
    "kind": "audioinput",
    "label": "Built-in Audio Analog Stereo",
    "groupId": "406f767177516481725c53a4c7abfbefd23a01a66af61c1f3ee1dd2e197fb902"
  },
  {
    "deviceId": "",
    "kind": "videoinput",
    "label": "",
    "groupId": "31f9ad250b1102a12cac822980473eba017158bfbc76bd3639d05769b3f31e3e"
  },
  {
    "deviceId": "default",
    "kind": "audiooutput",
    "label": "Default",
    "groupId": "default"
  },
  {
    "deviceId": "667f58d66146ddca9a33b986df5793fe52c0417b86912e177ba02200c318e9d6",
    "kind": "audiooutput",
    "label": "Built-in Audio Analog Stereo",
    "groupId": "406f767177516481725c53a4c7abfbefd23a01a66af61c1f3ee1dd2e197fb902"
  }
]
```


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

Received on Monday, 4 May 2020 14:15:06 UTC