Add resolution 8K

This commit is contained in:
Arkadiusz Fal 2022-05-20 21:52:34 +02:00
parent 6376e573b1
commit ae365e814c
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import Foundation
// swiftlint:disable:next final_class // swiftlint:disable:next final_class
class Stream: Equatable, Hashable, Identifiable { class Stream: Equatable, Hashable, Identifiable {
enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable { enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable {
case hd4320p60
case hd4320p
case hd2160p60 case hd2160p60
case hd2160p50 case hd2160p50
case hd2160p48 case hd2160p48

View File

@ -96,6 +96,8 @@ extension Defaults.Keys {
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable { enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
case best case best
case hd4320p60
case hd4320p
case hd2160p60 case hd2160p60
case hd2160p case hd2160p
case hd1440p60 case hd1440p60
@ -112,7 +114,7 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
var value: Stream.Resolution { var value: Stream.Resolution {
switch self { switch self {
case .best: case .best:
return .hd2160p60 return .hd4320p60
default: default:
return Stream.Resolution(rawValue: rawValue)! return Stream.Resolution(rawValue: rawValue)!
} }
@ -122,6 +124,10 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
switch self { switch self {
case .best: case .best:
return "Best available quality" return "Best available quality"
case .hd4320p60:
return "8K, 60fps"
case .hd4320p:
return "8K"
case .hd2160p60: case .hd2160p60:
return "4K, 60fps" return "4K, 60fps"
case .hd2160p: case .hd2160p: