CameraManager icon indicating copy to clipboard operation
CameraManager copied to clipboard

Can't change camera during video recording

Open joeldrotleff opened this issue 3 years ago • 0 comments

I am trying to record a video that starts with the back camera and then continues with the back camera. But after tapping the flip camera button during recording, I get an error message:

Error Domain=AVFoundationErrorDomain Code=-11818 "Recording Stopped" UserInfo={AVErrorRecordingSuccessfullyFinishedKey=true, NSLocalizedDescription=Recording Stopped, NSLocalizedRecoverySuggestion=Stop any other actions using the recording device and try again., AVErrorRecordingFailureDomainKey=1, NSUnderlyingError=0x105d9b3d0 {Error Domain=NSOSStatusErrorDomain Code=-16414 "(null)"}}

Any idea why switching cameras during video recording causes this error, and what can be done about it?

Thanks, Joel

joeldrotleff avatar Sep 26 '22 05:09 joeldrotleff