From: Vincent Vanwaelscappel Date: Wed, 28 Apr 2021 11:16:43 +0000 (+0200) Subject: wait #4435 @2.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=877d9278b18120bfca97694e0356cb3e84f7dcaa;p=fluidbook-html5.git wait #4435 @2.5 --- diff --git a/js/libs/fluidbook/fluidbook.video.js b/js/libs/fluidbook/fluidbook.video.js index 9ceb4600..5b803eee 100644 --- a/js/libs/fluidbook/fluidbook.video.js +++ b/js/libs/fluidbook/fluidbook.video.js @@ -99,10 +99,11 @@ FluidbookVideo.prototype = { width = parseFloat($(e).data('width')), height = parseFloat($(e).data('height')), name = $(e).data('name'), - controls = $(e).data('controls'), - loop = $(e).data('loop'), - sound = $(e).data('sound'), - autoplay = $(e).data('autoplay'), + controls = parseInt($(e).data('controls')) == 1, + loop = parseInt($(e).data('loop')) == 1, + sound = parseInt($(e).data('sound')) == 1, + autoplay = parseInt($(e).data('autoplay')) == 1, + nativeAutoplay = !autoplay && parseInt($(e).data('nativeautoplay')) == 1, setup = $(e).data('setup'), linkid = $(e).data('link-id'), url = $(e).data('url'), @@ -110,7 +111,7 @@ FluidbookVideo.prototype = { poster, html, player; - var hidelinksonplay = $(e).data('hidelinksonplay') === '' ? [] : $(e).data('hidelinksonplay').split(','); + var hidelinksonplay = $(e).data('hidelinksonplay') == undefined || $(e).data('hidelinksonplay') === '' ? [] : $(e).data('hidelinksonplay').split(','); //console.log('Initialising video ID: ' + id); @@ -148,7 +149,7 @@ FluidbookVideo.prototype = { html = '