aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts8
1 files changed, 7 insertions, 1 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 3b5edc27a..5e2683334 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -33,7 +33,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
33 error = false 33 error = false
34 loading = false 34 loading = false
35 player: videojs.Player 35 player: videojs.Player
36 playerElement: HTMLMediaElement 36 playerElement: HTMLVideoElement
37 userRating: UserVideoRateType = null 37 userRating: UserVideoRateType = null
38 video: VideoDetails = null 38 video: VideoDetails = null
39 videoPlayerLoaded = false 39 videoPlayerLoaded = false
@@ -288,6 +288,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
288 if (this.videoPlayerLoaded !== true) { 288 if (this.videoPlayerLoaded !== true) {
289 this.playerElement = this.elementRef.nativeElement.querySelector('#video-element') 289 this.playerElement = this.elementRef.nativeElement.querySelector('#video-element')
290 290
291 // If autoplay is true, we don't really need a poster
292 if (this.isAutoplay() === false) {
293 console.log('coucou')
294 this.playerElement.poster = this.video.previewUrl
295 }
296
291 const videojsOptions = { 297 const videojsOptions = {
292 controls: true, 298 controls: true,
293 autoplay: this.isAutoplay(), 299 autoplay: this.isAutoplay(),