Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when setup CameraManager #249

Open
piv199 opened this issue May 25, 2021 · 2 comments
Open

Crash when setup CameraManager #249

piv199 opened this issue May 25, 2021 · 2 comments

Comments

@piv199
Copy link

piv199 commented May 25, 2021

"*** -[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)
@Hamna21
Copy link

Hamna21 commented Jan 17, 2022

Hello @piv199,

Were you able to find a solution to resolve this crash?

@villyGreen
Copy link

some issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants