Player controls UI changes

WIP on controls

Chapters

working

Add previews variable

Add lists ids

WIP
This commit is contained in:
Arkadiusz Fal
2022-06-18 14:39:49 +02:00
parent 9c98cf9558
commit 321c265a11
60 changed files with 2524 additions and 1320 deletions

View File

@@ -32,6 +32,7 @@ struct Video: Identifiable, Equatable, Hashable {
var channel: Channel
var related = [Video]()
var chapters = [Chapter]()
init(
id: String? = nil,
@@ -53,7 +54,8 @@ struct Video: Identifiable, Equatable, Hashable {
dislikes: Int? = nil,
keywords: [String] = [],
streams: [Stream] = [],
related: [Video] = []
related: [Video] = [],
chapters: [Chapter] = []
) {
self.id = id ?? UUID().uuidString
self.videoID = videoID
@@ -75,6 +77,7 @@ struct Video: Identifiable, Equatable, Hashable {
self.keywords = keywords
self.streams = streams
self.related = related
self.chapters = chapters
}
var publishedDate: String? {