I'm setting custom exposure/iso with the camera using:
AVCaptureDevice* cd = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
[cd setExposureModeCustomWithDuration:cmtime ISO:iso completionHandler:nil];
This works fine. However, for the duration of the app's session these custom settings persist. Is there a way to reset the capture device's exposure/iso settings? I've tried something like:
if([captureDevice lockForConfiguration:&error]){
[captureDevice setExposureModeCustomWithDuration:captureDevice.activeFormat.minExposureDuration ISO:captureDevice.activeFormat.minISO completionHandler:nil];
[captureDevice unlockForConfiguration];
}
But this doesn't reset the camera to the default settings.