Playback rate

This commit is contained in:
Arkadiusz Fal
2021-06-19 22:10:14 +02:00
parent c40fc3e042
commit bb19fca073
9 changed files with 105 additions and 11 deletions

23
Model/Profile.swift Normal file
View File

@@ -0,0 +1,23 @@
import Foundation
final class Profile: ObservableObject {
let defaultStreamResolution: DefaultStreamResolution = .hd720pFirstThenBest
let skippedSegmentsCategories = [String]() // SponsorBlockSegmentsProvider.categories
// let sid = "B3_WzklziGu8JKefihLrCsTNavdj73KMiPUBfN5HW2M="
let sid = "RpoS7YPPK2-QS81jJF9z4KSQAjmzsOnMpn84c73-GQ8="
}
enum DefaultStreamResolution: String {
case hd720pFirstThenBest, hd1080p, hd720p, sd480p, sd360p, sd240p, sd144p
var value: StreamResolution {
switch self {
case .hd720pFirstThenBest:
return .hd720p
default:
return StreamResolution(rawValue: rawValue)!
}
}
}