You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, cameraManager.stopVideoRecording seems work perfection in lower duration recording, but when try to do more recording then it will not return completion block, it was not going in below condition because runningMovieOutput.isRecording returning false (in CameraManager.swift) and didn't get callback :
if let runningMovieOutput = movieOutput,
runningMovieOutput.isRecording {
videoCompletion = completion
runningMovieOutput.stopRecording()
}
I also tried different ways from given feedback like
1.) Moving cameraManager.cameraOutputMode in the "record" button method just before calling
cameraManager.startRecordingVideo()
but, this is not working.
2.) By checking and changing cameraOutputMode before start recording and after stop recording Before start recording :
```
if cameraManager.cameraOutputMode == .stillImage {
print("Camera output is stillImage, switching to videoWithMic")
cameraManager.cameraOutputMode = .videoWithMic
}
cameraManager.startRecordingVideo()
Activity
absolutvodka8888 commentedon May 8, 2023
Please follow the instructions:
cameraManager.addLayerPreviewToView(cameraView, newCameraOutputMode: .videoOnly) {
self.cameraManager.startRecordingVideo()
}
TomFluentjoy commentedon May 5, 2024
I have a question. I tried to stop recording, but it doesn't seem to have worked. Can you help me with this?