Bug 189658 - Camera not present in navigator.mediaDevices.enumerateDevices after unplugging and plugging back in
Summary: Camera not present in navigator.mediaDevices.enumerateDevices after unpluggin...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-09-16 20:24 PDT by xpeng
Modified: 2018-09-19 10:55 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xpeng 2018-09-16 20:24:34 PDT
Steps:
1. Plugin a camera device A in Macbook
2. A can be enumerated with navigator.mediaDevices.enumerateDevices in Safari
3. plugout the device A and then plugin device A

Result:
A can not be enumerated with navigator.mediaDevices.enumerateDevices in Safari
Comment 1 Radar WebKit Bug Importer 2018-09-19 10:12:21 PDT
<rdar://problem/44606715>
Comment 2 youenn fablet 2018-09-19 10:51:21 PDT
This is expected behavior.
For privacy reasons, enumerateDevices provides non default device information only if persistent access is granted at the moment.
Comment 3 youenn fablet 2018-09-19 10:51:46 PDT
Oh sorry, I misread the bug, will try to repro it!
Comment 4 youenn fablet 2018-09-19 10:55:19 PDT
I tried reproing the issue on Safari Tech Preview 65 and was not able to do so.
Can you provide additional information on your setup and maybe a test case showing the issue?