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
class Stream: Equatable, Hashable, Identifiable {
enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable {
case hd4320p60
case hd4320p
case hd2160p60
case hd2160p50
case hd2160p48

View File

@ -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: