Skip to content

Commit

Permalink
MOB-2129 - Fixed occasional camera crash (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Jul 24, 2024
1 parent d7b55e6 commit 77737a5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ private final class CameraSessionService {

func setupCaptureSession() -> Bool {
let captureSession = AVCaptureSession()
captureSession.beginConfiguration()
captureSession.sessionPreset = .hd1920x1080
defer {
captureSession.commitConfiguration()
}
guard let videoCaptureDevice = AVCaptureDevice.default(for: .video) else { return false }
self.videoCaptureDevice = videoCaptureDevice

Expand Down

0 comments on commit 77737a5

Please sign in to comment.