]> _ Git - fluidbook-html5.git/commitdiff
wait #5200 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 14:47:06 +0000 (16:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 14:47:06 +0000 (16:47 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 1841a159ac6f67a7f0c0fac0ef1ac188d1a4e628..7bc93d36d58c52e59b703e0ec6a3951f90adf7dd 100644 (file)
@@ -244,7 +244,7 @@ FluidbookMenu.prototype = {
         view += markup;
         view += '</div></div>';
 
-        this.viewWrap(view, 'iframe', maxWidth + ' dir="ltr" data-hash="#/iframe"' , '', false, hash);
+        this.viewWrap(view, 'iframe', maxWidth + ' dir="ltr" data-hash="#/iframe"', '', false, hash);
         if (callback != undefined) {
             callback();
         }
@@ -295,6 +295,11 @@ FluidbookMenu.prototype = {
         var times = [250, 500, 750, 1000, 1250];
         $.each(times, function (k, v) {
             setTimeout(function () {
+                $('[data-menu="video"] .video-js').each(function () {
+                    if ($(this).parent().attr('autoplay') == 'true') {
+                        videojs.players[$(this).attr('id')].play();
+                    }
+                });
                 $this.resize();
             }, v);
         });