]> _ Git - fluidbook-html5.git/commitdiff
wait #4735 @0:30
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Oct 2021 14:09:23 +0000 (16:09 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Oct 2021 14:09:23 +0000 (16:09 +0200)
js/libs/fluidbook/fluidbook.video.js

index 5b803eee2e8a6b345e8cf75a30d54674253ef323..c3c9377f081a6e477592963e536522164d4ef8b9 100644 (file)
@@ -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{
+
                 }
             }