+ x = nil
+ y = nil
+ width = nil
+ height = nil
+ preventMove = false
+ preventResize = false
+ autoStart = false
+ maxLength = 300
+ }
+
+ init(from action: RecordAction) {
+ self.frameRate = action.fps ?? CapturaSettings.frameRate
+ self.outputFormats = action.outputs ?? CapturaSettings.outputFormats
+ self.backendFormat = action.backendOutput ?? CapturaSettings.backendFormat
+ if action.skipBackend {
+ self.backend = nil
+ } else {
+ self.backend = action.backend ?? CapturaSettings.backend
+ }
+ self.shouldKeepLocalFiles = action.keepLocalFiles ?? CapturaSettings.shouldKeepLocalFiles
+ self.x = action.x
+ self.y = action.y
+ self.width = action.width
+ self.height = action.height
+ preventMove = action.preventMove ?? false
+ preventResize = action.preventResize ?? false
+ autoStart = action.autoStart ?? false
+ maxLength = action.maxLength ?? 300