From 38d3ec9799df970462f19f1b7ee09a1fdf7fa803 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 30 Mar 2022 16:47:06 +0200 Subject: [PATCH] wait #5200 @0.5 --- js/libs/fluidbook/fluidbook.menu.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }); -- 2.39.5