aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-14 17:20:39 +0100
committerChocobozzz <me@florianbigard.com>2018-02-14 18:04:30 +0100
commit3bcfff7f446d0a1d8ef5adf340375e178259a42c (patch)
tree7dc09e67525babb81c9d5d9e8ae3b034fdab0b6d /client/src/app/videos
parent8cac1b6446a97b16387c9590ce5c799a79a759fa (diff)
downloadPeerTube-3bcfff7f446d0a1d8ef5adf340375e178259a42c.tar.gz
PeerTube-3bcfff7f446d0a1d8ef5adf340375e178259a42c.tar.zst
PeerTube-3bcfff7f446d0a1d8ef5adf340375e178259a42c.zip
Fix video play promise error on non supported browsers
Diffstat (limited to 'client/src/app/videos')
-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()