Bug 177126
| Summary: | getUserMedia fails with an OverConstrainedError when no devices are found | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Trond Kjetil Bremnes <tkbremnes> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eric.carlson, jonlee, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | All | ||
| OS: | Unspecified | ||
Trond Kjetil Bremnes
If no devices are detected (MediaDevices.enumerateDevices responds with an empty array), the MediaDevices.getUserMedia fails with a OverConstrainedError.
This can happen if the webcam for some reason fails (happens from time to time on MacOS), or always in the case of the iOS Simulator.
According to the specs, it should have failed with a NotFoundError – OverConstrainedError should happen when the available devices are not able to fulfill the constraints set (e.g. resolution).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
youenn fablet
I wonder whether there is a fingerprinting issue here, probably not big in practice.
Radar WebKit Bug Importer
<rdar://problem/34518610>