I am doing a project with my camera by using AVFoundation/AVFoundation.h. Now, I want to achieve zooming the screen.
I checked the document on AVCaptureDevice, and found a parameter named "videoZoomFactor", which said it can be used for defining the zoom rates.
Therefore, I used the following code:
device.videoZoomFactor = device.activeFormat.videoZoomFactorUpscaleThreshold;
But the app crashed and showed 「the videoZoomFactor is out of range.」
How did this happen? What should I do to zoom the camera?