| Summary: | focusDistance is missing for Back Ultra Wide Camera of iPhone 13 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Shawn Lee <shawnlee> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED --- | ||
| Severity: | Normal | CC: | ap, eric.carlson, jer.noble, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Shawn Lee
2023-08-16 19:53:41 PDT
Thank you for the report! Could you please clarify if this worked correctly before iOS 17? We can of course test ourselves, but it will be good to confirm that we're on the same page. WebKit only includes `focusDistance` for a camera if `-[AVCaptureDevice minimumFocusDistance]` doesnt' return -1, see [1], so apparently the iPhone 13 ultra wide camera doesn't support it. [1] https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm#L322 |