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

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

Open
Nerway opened this issue May 5, 2021 · 2 comments
Open

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

Nerway opened this issue May 5, 2021 · 2 comments

Comments

@Nerway
Copy link

Nerway commented May 5, 2021

Stopped working on iOS 14.5 update.

@Nerway Nerway changed the title cameraManager.stopVideoRecording() don't seem to work on iOS 14.5 cameraManager.stopVideoRecording() doesn't seem to work on iOS 14.5 May 5, 2021
@Nerway
Copy link
Author

Nerway commented May 7, 2021

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."

@absolutvodka8888
Copy link

Please follow the instructions:

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

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

2 participants