]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 14 Nov 2014 16:27:45 +0000 (16:27 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 14 Nov 2014 16:27:45 +0000 (16:27 +0000)
js/libs/fluidbook/fluidbook.video.js

index 007458468217aa08997c50c54571c63cbb8524ed..7c0e00af9039f11bf068da8c57038f22d53fcfb8 100644 (file)
@@ -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 = {