Capturer icon indicating copy to clipboard operation
Capturer copied to clipboard

PhotoOutput now has public 'avCapturePhotoOutput',

Open drewster99 opened this issue 4 months ago • 0 comments

Added avCapturePhotoOutput to PhotoOutput so you can more reasonably configure your settings during capture, including information like isShutterSoundSuppressionSupported.

Added public access to AVCapturePhotoOutput. Why?

My app wanted to set the option in AVCaptureSettings of isShutterSoundSuppressionEnabled to true, but this resulted in a crash for some users with the error:

Fatal Exception: NSInvalidArgumentException *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] settings.shutterSoundSuppressionEnabled may not be set to YES unless self.shutterSoundSuppressionSupported is YES

I didn't rename anything, but just added this extra public,

drewster99 avatar Aug 12 '25 18:08 drewster99