You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FusumaExample[5376:2477109] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureVideoDevice setFlashMode:] - the passed flashMode 0 is not supported by the device. Use -isFlashModeSupported: to discover valid flash modes.'
clone the repository, add fusuma.hasVideo = true to ViewController.swift run the app
problem is FSVideoCameraView.swift, adding guard device.hasFlash else { return } before device.flashMode = AVCaptureFlashMode.Off fixes the crash but the flashButton is still in the UI and users can press it, that will make the app crash with the same error, in Picture mode flashButton is not displayed
The text was updated successfully, but these errors were encountered:
App crash when activating video capture mode
Device: iPad Air 2
FusumaExample[5376:2477109] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureVideoDevice setFlashMode:] - the passed flashMode 0 is not supported by the device. Use -isFlashModeSupported: to discover valid flash modes.'
clone the repository, add
fusuma.hasVideo = true
to ViewController.swift run the appproblem is FSVideoCameraView.swift, adding
guard device.hasFlash else { return }
beforedevice.flashMode = AVCaptureFlashMode.Off
fixes the crash but the flashButton is still in the UI and users can press it, that will make the app crash with the same error, in Picture mode flashButton is not displayedThe text was updated successfully, but these errors were encountered: