let preventResize: Bool
let autoStart: Bool
let maxLength: Int
-
+
init(
frameRate: Int? = nil,
outputFormats: OutputFormatSetting? = nil,
autoStart = false
maxLength = 300
}
-
+
init(from action: RecordAction) {
self.frameRate = action.fps ?? CapturaSettings.frameRate
self.outputFormats = action.outputs ?? CapturaSettings.outputFormats
autoStart = action.autoStart ?? false
maxLength = action.maxLength ?? 300
}
-
+
var shouldSaveMp4: Bool {
outputFormats.shouldSaveMp4() || (shouldUseBackend && shouldUploadMp4)
}
-
+
var shouldSaveGif: Bool {
outputFormats.shouldSaveGif() || (shouldUseBackend && shouldUploadGif)
}
-
+
var shouldUploadGif: Bool {
backendFormat.shouldSaveGif()
}
-
+
var shouldUploadMp4: Bool {
backendFormat.shouldSaveMp4()
}
-
+
var shouldUseBackend: Bool {
backend != nil
}