Crash when setup CameraManager
piv199 opened this issue · comments
Olexii Pyvovarov commented
"*** -[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration"
Example setup:
public private(set) lazy var cameraManager = with(CameraManager()) {
$0.shouldEnableExposure = false
$0.cameraDevice = .front
$0.writeFilesToPhoneLibrary = false
$0.cameraOutputMode = .videoWithMic
$0.cameraOutputQuality = .hd1280x720
}
And I have the same call as in example app
cameraManager.addPreviewLayerToView(cameraView, newCameraOutputMode: .videoWithMic)
Hamna Usmani commented
Hello @piv199,
Were you able to find a solution to resolve this crash?
Vadim Vitkovskiy commented
some issue