mediacapture-extensions icon indicating copy to clipboard operation
mediacapture-extensions copied to clipboard

Expose the type of device in MediaDeviceInfo

Open youennf opened this issue 4 years ago • 5 comments

Chrome is currently exposing the type (builtin, bluetooth, maybe usb) in MediaDeviceInfo.label. This seems ok to expose like this but is difficult to use by web applications, if they would like to do so. Parsing the label might be hard and localisation might make this even more difficult to use. It might be interesting to split that information in its own attribute, whose value could be an enumeration. One potential use case would be a website showing the current device being used as an icon (instead of a label) according this information.

youennf avatar Jun 18 '20 07:06 youennf