imaginary-cloud / CameraManager

Simple Swift class to provide all the configurations you need to create custom camera view in your app
MIT License
1.37k stars 324 forks source link

video recording crash (No active/enabled connections) #234

Open MarsXan opened 4 years ago

MarsXan commented 4 years ago

When I stop recording and tap again in the recording button it crashes. [AVCaptureMovieFileOutput startRecordingToOutputFileURL:recordingDelegate:] No active/enabled connections"

Screen Shot 2020-08-08 at 9 43 14 AM

damienissa commented 4 years ago

I Have the same problem! Does anyone have solutions?

torrao commented 4 years ago

@MarsXan and @damienissa,

are you using the Example App and the latest CameraManager version (5.1.3)?

MarsXan commented 4 years ago

I'm using the last version in my app

Screen Shot 2020-08-28 at 12 14 22 AM
torrao commented 4 years ago

@MarsXan and @damienissa

I'm going to take a look at this. Can you share your CameraManager setup? It would help me replicate the issue.

KevinGlinski commented 3 years ago

@torrao I was running into this also, here is a gist of my code.

https://gist.github.com/KevinGlinski/9d1da23f81619661768fd07bcb16ce84

The strange thing is that setupCameraManager sets output mode to video, but then in startRecording when we call startRecordingVideo output mode is set back to .stillImage. If I uncomment line 82 to set output mode back to video then I get the no connection error. This makes me think that something is losing/resetting state based on how the view/viewcontrollers are setup

Maulik699 commented 1 year ago

@torrao Any update on this please? It's important for me and i am getting this crash. Anyone found a solution for this?