mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 14:50:32 +05:30
Add hd2160p60fps resolution (fix #118)
This commit is contained in:
parent
d973340cd0
commit
974b3d7d93
@ -5,6 +5,7 @@ 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 hd2160p60
|
||||||
case hd2160p
|
case hd2160p
|
||||||
case hd1440p60
|
case hd1440p60
|
||||||
case hd1440p
|
case hd1440p
|
||||||
|
@ -96,6 +96,7 @@ extension Defaults.Keys {
|
|||||||
|
|
||||||
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
||||||
case best
|
case best
|
||||||
|
case hd2160p60
|
||||||
case hd2160p
|
case hd2160p
|
||||||
case hd1440p60
|
case hd1440p60
|
||||||
case hd1440p
|
case hd1440p
|
||||||
@ -111,7 +112,7 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
|||||||
var value: Stream.Resolution {
|
var value: Stream.Resolution {
|
||||||
switch self {
|
switch self {
|
||||||
case .best:
|
case .best:
|
||||||
return .hd2160p
|
return .hd2160p60
|
||||||
default:
|
default:
|
||||||
return Stream.Resolution(rawValue: rawValue)!
|
return Stream.Resolution(rawValue: rawValue)!
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user