![]() ![]() Some sample code snippet from my project. The "area did change notification" is only triggered after the focus is done.) What if the device is in the middle of "adjustingFocus" at a POI and the content changed? You don't want the device fall back to auto focus at the center, and want the focus action to finish. Most likely these streaming websites use Page Visibility API, so it must be by design. (Even better, you don't need to handle many corner cases. You can observe changes to the value of this property using key-value When you are done configuring theĭevice, call unlockForConfiguration to release the lock and allow ![]() LockForConfiguration: to acquire exclusive access to the device’sĬonfiguration properties. Wish to re-focus, adjust exposure, white balance, etc.īefore changing the value of this property, you must call If subject area change monitoring isĮnabled, the capture device object sends anĪVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects aĬhange to the subject area, at which time an interested client may Monitor the video subject area for changes, such as lighting changes, The setup process is pretty straightforward, as explained in detail below: Pick a spot on your wall where you will hang the focus chart. The value of this property indicates whether the receiver should All you need to do is to set " subjectAreaChangeMonitoringEnabled" on and register KVO on "AVCaptureDeviceSubjectAreaDidChangeNotification"! On the iOS 6.1 docs: The preceding issues often occur while the camera works correctly in Photo mode, is slow to focus, or fails to auto-switch to super macro mode. The camera frequently performs autofocus during video recording. To get started, turn on Live View, use it to frame up your shot, then press the shutter button half way down. The video becomes blurry after a slight movement during recording, and then becomes clear, or remains blurry afterward. but it turned super simple, Apple already did the 99% of work for us. Autofocus is great for general shooting situations. ![]()
0 Comments
Leave a Reply. |