Bug 174043 - mediaDevices.enumerateDevices() lists output devices as kind 'audioinput'
Summary: mediaDevices.enumerateDevices() lists output devices as kind 'audioinput'
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.12.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-30 14:46 PDT by lepinski
Modified: 2021-08-09 04:36 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lepinski 2017-06-30 14:46:19 PDT
(I believe this is a "regression" introduced in the latest Safari Technology Preview (WebKit 12604.1.27.0.1), although previously audio output devices were not enumerated at all.)

- call navigator.mediaDevices.enumerateDevices()
- "Built-in Output" is returned in the list, but its kind is listed as "audioinput", instead of "audiooutput"

I've tested this a MacBook Pro (Retina, 13-inch, Early 2015), running macOS 10.12.5.
Comment 1 Radar WebKit Bug Importer 2017-07-01 10:53:21 PDT
<rdar://problem/33094557>
Comment 2 xpeng 2017-11-23 23:28:10 PST
the issue can be reproduced in safari 11.0.1.
Step 1: plugin an audio device and getusermedia to select the device
Step 2: plugout out the audio device in use
Step 3: plugin the audio device again and check the device list calling navigator.mediaDevices.enumerateDevices();

Result : there will be a fake device : 
kind : "audioinput", label :"Built-in Output"