aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index b7779ae9a..7a64406e6 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -330,7 +330,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
330 videoFiles: this.video.files, 330 videoFiles: this.video.files,
331 playerElement: this.playerElement, 331 playerElement: this.playerElement,
332 peerTubeLink: false, 332 peerTubeLink: false,
333 videoViewUrl: this.videoService.getVideoViewUrl(this.video.uuid) 333 videoViewUrl: this.videoService.getVideoViewUrl(this.video.uuid),
334 videoDuration: this.video.duration
334 }, 335 },
335 hotkeys: { 336 hotkeys: {
336 enableVolumeScroll: false 337 enableVolumeScroll: false
@@ -350,7 +351,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
350 }) 351 })
351 }) 352 })
352 } else { 353 } else {
353 this.player.peertube().setVideoFiles(this.video.files, this.videoService.getVideoViewUrl(this.video.uuid)) 354 const videoViewUrl = this.videoService.getVideoViewUrl(this.video.uuid)
355 this.player.peertube().setVideoFiles(this.video.files, videoViewUrl, this.video.duration)
354 } 356 }
355 357
356 this.setVideoDescriptionHTML() 358 this.setVideoDescriptionHTML()