No sound in video more than 10 seconds fixed.
This commit is contained in:
parent
8a818c1b96
commit
745a1df62f
Binary file not shown.
|
|
@ -476,7 +476,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
|
|||
|
||||
if shouldReinitializeMovieOutput {
|
||||
movieOutput = AVCaptureMovieFileOutput()
|
||||
// movieOutput?.movieFragmentInterval = kCMTimeInvalid
|
||||
movieOutput!.movieFragmentInterval = kCMTimeInvalid
|
||||
|
||||
captureSession?.beginConfiguration()
|
||||
captureSession?.addOutput(movieOutput)
|
||||
|
|
@ -663,6 +663,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
|
|||
}
|
||||
if (movieOutput == nil) {
|
||||
movieOutput = AVCaptureMovieFileOutput()
|
||||
movieOutput!.movieFragmentInterval = kCMTimeInvalid
|
||||
}
|
||||
if library == nil {
|
||||
library = ALAssetsLibrary()
|
||||
|
|
|
|||
Loading…
Reference in New Issue