Video playback progress and restoring time for previously played

This commit is contained in:
Arkadiusz Fal
2021-10-22 22:49:31 +02:00
parent bc065e282a
commit 4307da57c5
13 changed files with 219 additions and 89 deletions

View File

@@ -25,7 +25,7 @@ struct PlayerQueueRow: View {
}
}
} label: {
VideoBanner(video: item.video)
VideoBanner(video: item.video, playbackTime: item.playbackTime, videoDuration: item.videoDuration)
}
.buttonStyle(.plain)
}

View File

@@ -211,7 +211,7 @@ struct VideoDetails: View {
var publishedDateSection: some View {
Group {
if let video = player.currentItem.video {
if let video = player.currentVideo {
HStack(spacing: 4) {
if let published = video.publishedDate {
Text(published)
@@ -235,7 +235,7 @@ struct VideoDetails: View {
var countsSection: some View {
Group {
if let video = player.currentItem.video {
if let video = player.currentVideo {
HStack {
Spacer()