From: Vincent Vanwaelscappel Date: Wed, 30 Mar 2022 14:47:06 +0000 (+0200) Subject: wait #5200 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=38d3ec9799df970462f19f1b7ee09a1fdf7fa803;p=fluidbook-html5.git wait #5200 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 1841a159..7bc93d36 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -244,7 +244,7 @@ FluidbookMenu.prototype = { view += markup; view += ''; - 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); });