CameraManager icon indicating copy to clipboard operation
CameraManager copied to clipboard

cameraManager.stopVideoRecording() doesn't seem to work on iOS 14.5

Open Nerway opened this issue 3 years ago • 2 comments

Stopped working on iOS 14.5 update.

Nerway avatar May 05 '21 22:05 Nerway

The solution is to request for readWrite authorization after iOS 14's privacy policy updates. Check info.plist for Privacy - Photo Library .... updates.

PHPhotoLibrary.requestAuthorization(for: .readWrite) { status in switch status { case .notDetermined: case .restricted: case .denied: case .authorized: case .limited: @unknown default: } }

  • Also, Apple's official article about this states: "After the user sets the app’s authorization status, the system remembers their choice and won’t prompt them again. However, the user can change this choice at any time using the Settings app. Prepare your app to respond appropriately when a user changes your appʼs access."

Nerway avatar May 07 '21 09:05 Nerway

Please follow the instructions:

cameraManager.addLayerPreviewToView(cameraView, newCameraOutputMode: .videoOnly) { self.cameraManager.startRecordingVideo() }

absolutvodka8888 avatar May 08 '23 05:05 absolutvodka8888