3 class ScriptedPreferences: NSObject {
4 @objc dynamic var fps: Int {
6 CapturaSettings.frameRate
9 CapturaSettings.frameRate = newValue
12 @objc dynamic var outputs: String {
14 CapturaSettings.outputFormats.toString()
17 CapturaSettings.outputFormats = OutputFormatSetting(newValue) ?? .gifOnly
21 @objc dynamic var backend: String {
23 CapturaSettings.backend?.absoluteString ?? ""
26 CapturaSettings.backend = URL(string: newValue)
30 @objc dynamic var backend_output: String {
32 CapturaSettings.backendFormat.toString()
35 CapturaSettings.backendFormat = OutputFormatSetting(newValue) ?? .gifOnly
39 @objc dynamic var keep_local_files: Bool {
41 CapturaSettings.shouldKeepLocalFiles
44 CapturaSettings.shouldKeepLocalFiles = newValue