mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Set the max size for recording videos
This commit is contained in:
parent
ff65c84504
commit
ddc65ba73d
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ import Foundation
|
|||
import AVFoundation
|
||||
import PromiseKit
|
||||
import CoreServices
|
||||
import SessionMessagingKit
|
||||
|
||||
protocol PhotoCaptureDelegate: AnyObject {
|
||||
func photoCapture(_ photoCapture: PhotoCapture, didFinishProcessingAttachment attachment: SignalAttachment)
|
||||
|
@ -463,6 +464,9 @@ class CaptureOutput {
|
|||
// leaving it enabled causes all audio to be lost on videos longer
|
||||
// than the default length (10s).
|
||||
movieOutput.movieFragmentInterval = CMTime.invalid
|
||||
|
||||
// Ensure the recorded movie can't go over the maximum file server size
|
||||
movieOutput.maxRecordedFileSize = Int64(FileServerAPI.maxFileSize)
|
||||
}
|
||||
|
||||
var photoOutput: AVCaptureOutput? {
|
||||
|
|
Loading…
Reference in a new issue