From abe109d4c7664b461b9706dd72ca7fecbc6f1db9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 4 Oct 2021 16:09:23 +0200 Subject: [PATCH] wait #4735 @0:30 --- js/libs/fluidbook/fluidbook.video.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.video.js b/js/libs/fluidbook/fluidbook.video.js index 5b803eee..c3c9377f 100644 --- a/js/libs/fluidbook/fluidbook.video.js +++ b/js/libs/fluidbook/fluidbook.video.js @@ -174,7 +174,7 @@ FluidbookVideo.prototype = { //html += 'onended="this.play()" '; html += 'loop '; } - if (nativeAutoplay) { + if (nativeAutoplay || autoplay) { html += 'autoplay '; } @@ -215,8 +215,7 @@ FluidbookVideo.prototype = { $this.resizeControls(); // Make sure player controls are the right size - console.log('autoplay', autoplay); - if (autoplay) { + if (autoplay) { var promise = player.play(); if (promise !== undefined) { @@ -227,6 +226,8 @@ FluidbookVideo.prototype = { console.log('autoplay nok'); // Autoplay was prevented. }); + }else{ + } } -- 2.39.5