Reputation: 181
Background:
I'm working on an app that uses videoZoomFactor
to zoom in on the camera view by a specific, user-specified amount. I'd like to incorporate using the telephoto and ultra wide lenses.
I implemented builtInTripleCamera
, where the switch is handled quickly and automatically. It works really well for the transition between the ultra-wide and wide, but going from wide to telephoto introduces a jarring position change. This wouldn't be so bad on its own, but it happens about a second after my videoZoomFactor
change is complete, so there's a zoom in focal length followed by a change in position.
Update: I've also found this happens when the camera is focused on a nearby object and decides that I want to use the macro lens.
So my questions are:
builtInTripleCamera
? Apple clearly uses some tricks to avoid it in the stock camera app, is that accessible somehow?builtInTripleCamera
works?If relevant, the code I'm using for manual switching is here: https://stackoverflow.com/a/54757886/11274269
Upvotes: 2
Views: 983