Bug 174043
| Summary: | mediaDevices.enumerateDevices() lists output devices as kind 'audioinput' | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | lepinski |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | alex, eric.carlson, jond, jonlee, lepinski, lwarlow, webkit-bug-importer, xpeng1984, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Mac | ||
| OS: | macOS 10.12.4 | ||
lepinski
(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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/33094557>
xpeng
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"