From ae365e814c6a609973cb11d091d3791ab3bbdcb1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 20 May 2022 21:52:34 +0200 Subject: [PATCH] Add resolution 8K --- Model/Stream.swift | 2 ++ Shared/Defaults.swift | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Model/Stream.swift b/Model/Stream.swift index e3a83ed3..5f600603 100644 --- a/Model/Stream.swift +++ b/Model/Stream.swift @@ -5,6 +5,8 @@ import Foundation // swiftlint:disable:next final_class class Stream: Equatable, Hashable, Identifiable { enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable { + case hd4320p60 + case hd4320p case hd2160p60 case hd2160p50 case hd2160p48 diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index c61eb547..40f5afa3 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -96,6 +96,8 @@ extension Defaults.Keys { enum ResolutionSetting: String, CaseIterable, Defaults.Serializable { case best + case hd4320p60 + case hd4320p case hd2160p60 case hd2160p case hd1440p60 @@ -112,7 +114,7 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable { var value: Stream.Resolution { switch self { case .best: - return .hd2160p60 + return .hd4320p60 default: return Stream.Resolution(rawValue: rawValue)! } @@ -122,6 +124,10 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable { switch self { case .best: return "Best available quality" + case .hd4320p60: + return "8K, 60fps" + case .hd4320p: + return "8K" case .hd2160p60: return "4K, 60fps" case .hd2160p: