CameraManager
CameraManager copied to clipboard
Crash when setup CameraManager
"*** -[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)
Hello @piv199,
Were you able to find a solution to resolve this crash?
some issue