CC support with Invidious and MPV

This commit is contained in:
Arkadiusz Fal
2022-07-05 19:20:25 +02:00
parent 3718311a93
commit e56ab3804e
11 changed files with 163 additions and 25 deletions

View File

@@ -34,6 +34,8 @@ struct Video: Identifiable, Equatable, Hashable {
var related = [Video]()
var chapters = [Chapter]()
var captions = [Captions]()
init(
id: String? = nil,
videoID: String,
@@ -55,7 +57,8 @@ struct Video: Identifiable, Equatable, Hashable {
keywords: [String] = [],
streams: [Stream] = [],
related: [Video] = [],
chapters: [Chapter] = []
chapters: [Chapter] = [],
captions: [Captions] = []
) {
self.id = id ?? UUID().uuidString
self.videoID = videoID
@@ -78,6 +81,7 @@ struct Video: Identifiable, Equatable, Hashable {
self.streams = streams
self.related = related
self.chapters = chapters
self.captions = captions
}
var publishedDate: String? {