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

fix: support video recording on iOS #308

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Fixed audio issue while recording longer videos
The mp4 format recorded in fragments of 10 seconds, so I disabled this option because there was no audio if the recording was longer than 10 seconds
mario-deaconescu committed Mar 3, 2024
commit e867def925c6d02985a3625d8d930ed30007d0e1
3 changes: 2 additions & 1 deletion ios/Plugin/CameraController.swift
Original file line number Diff line number Diff line change
@@ -432,7 +432,8 @@ extension CameraController {
}
}

videoOutput!.startRecording(to: fileUrl, recordingDelegate: self)
videoOutput?.movieFragmentInterval = CMTime.invalid
videoOutput?.startRecording(to: fileUrl, recordingDelegate: self)
completion(nil)
}