Created attachment 460370 [details]
Output of enumerateDevices API before and after plugging in USB dock
Steps to reproduce:
https://webrtc.github.io/samples/src/content/devices/input-output/ page on Safari browser and check for the devices available.
2. Connect a USB dock (with ports for Audio Input and Output devices) to your laptop, without connecting any audio devices.
3. Open the pages again and check for the devices available
4. In the list of the devices you can see that USB PnP Audio Device are listed.
These devices (USB PnP Audio Device) are dummy devices and do not correspond to any working device and do not provide any audio stream or audio output functionality.
navigator.mediaDevices.enumerateDevices() output also shows the same output.
The list of the devices returned should only contain the actual devices.
The list contains the dummy devices aswell.
Attaching the output of enumerateDevices API aswell. Please see the difference between *after_usb_dock and *before_usb_dock files.
Will be happy to provide more information on this bug if needed.
@vinayak, do you happen to know which Safari version you are using?
Do you know if it is a regression?
@vinayak, when you open FaceTime, is that device also available?
What about Chrome and/or Firefox?
We relaxed filtering at https://bugs.webkit.org/show_bug.cgi?id=234596.
I guess we could filter out devices named "USB PnP Audio Device" but it would be good to have a better approach.
@youenn, I am using Safari Version 15.4 (176188.8.131.52.13).
I don't know if it is a regression or not.
Chrome/Firefox also have this issue, have filed bugs there aswell.
>>> when you open FaceTime, is that device also available?
Yes youenn, the (USB PnP Audio Device) is available even in FaceTime Version 5.0 (3080) as well.
Mac OS Monterey 12.4
Team, Please let me know if any information is required from my end to proceed this issue.
Happy to provide any info if required.
Apparently, the issue is more with docks.
They should tell the OS when they have connected input/output devices and tell the OS accordingly. Some docks behave correctly and some do not.
Thanks for the info @youenn