Reducing power usage when capturing media
Optimize device camera power usage by stopping sessions when not needed and choosing appropriate video formats.
Overview
Device cameras draw a lot of power when they’re in use. To minimize the amount of time your app uses the device camera, run an AVCaptureSession only while your app is using the captured data, and call stopRunning() at the earliest opportunity. For example, stop the capture session if your app’s camera view is covered by other content, so that the device stops capturing the camera stream when someone can’t see it.
Because capturing higher-quality images consumes more power, set the capture device’s activeFormat to the format with the lowest image quality that supports your app’s features. Confirm that the isVideoBinned property is true for the format you use, as pixel binning also increases the power efficiency.