diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index 5db5a65..4358ff6 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -301,6 +301,9 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele } #if os(iOS) && !targetEnvironment(macCatalyst) + if #available(iOS 16.0, *) { + playerViewController.allowsVideoFrameAnalysis = false + } #endif if let url = subtitlesURL, !url.isEmpty { diff --git a/Sora/Views/SettingsView/SettingsSubViews/SettingsViewPlayer.swift b/Sora/Views/SettingsView/SettingsSubViews/SettingsViewPlayer.swift index f62b368..7bce329 100644 --- a/Sora/Views/SettingsView/SettingsSubViews/SettingsViewPlayer.swift +++ b/Sora/Views/SettingsView/SettingsSubViews/SettingsViewPlayer.swift @@ -74,6 +74,27 @@ struct SettingsViewPlayer: View { } } + Section(header: Text("Progress bar Marker Color")) { + ColorPicker("Segments Color", selection: Binding( + get: { + if let data = UserDefaults.standard.data(forKey: "segmentsColorData"), + let uiColor = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor { + return Color(uiColor) + } + return .yellow + }, + set: { newColor in + let uiColor = UIColor(newColor) + if let data = try? NSKeyedArchiver.archivedData( + withRootObject: uiColor, + requiringSecureCoding: false + ) { + UserDefaults.standard.set(data, forKey: "segmentsColorData") + } + } + )) + } + Section(header: Text("Skip Settings"), footer : Text("Double tapping the screen on it's sides will skip with the short tap setting.")) { HStack { Text("Tap Skip:")