From: Vincent Vanwaelscappel Date: Fri, 14 Nov 2014 16:27:45 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=daa02a6caeac2d0eba2c414393245d0215e89f9c;p=fluidbook-html5.git --- diff --git a/js/libs/fluidbook/fluidbook.video.js b/js/libs/fluidbook/fluidbook.video.js index 00745846..7c0e00af 100644 --- a/js/libs/fluidbook/fluidbook.video.js +++ b/js/libs/fluidbook/fluidbook.video.js @@ -8,10 +8,8 @@ function FluidbookVideo(fluidbook) { var probably = []; var maybe = []; var not = []; - if (Modernizr.ftouch) { - if (this.flash) { - probably.push('flv'); - } + if (Modernizr.ftouch && this.flash) { + maybe.push('flv'); } if (this.video) { @@ -40,16 +38,14 @@ function FluidbookVideo(fluidbook) { } } } - if (!Modernizr.ftouch) { - if (this.flash) { - probably.push('flv'); - } + if (!Modernizr.ftouch && this.flash) { + maybe.push('flv'); } this.videoFormats = $.merge(probably, maybe, not); this.preferedFormat = this.videoFormats[0]; - //fb("Video prefered format : " + this.preferedFormat+" ("+this.videoFormats.join(', ')+")"); + fb("Video prefered format : " + this.preferedFormat + " (" + this.videoFormats.join(', ') + ")"); } FluidbookVideo.prototype = {