]> _ Git - cubeextranet.git/commitdiff
Fix IE offline html5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 3 Jun 2015 12:16:35 +0000 (12:16 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 3 Jun 2015 12:16:35 +0000 (12:16 +0000)
inc/ws/Util/html5/class.ws.html5.compiler.php
inc/ws/Util/packager/html5/class.ws.packager.html5.links.php

index 441d85015221bdfca42d5555fe29c76c411ee6a7..73de82c6a8815e2ae294cea1230f53a20ab76ea7 100644 (file)
@@ -31,6 +31,7 @@ class wsHTML5Compiler {
                'js/libs/json.js',
                'js/libs/flashdetect.js',
                'js/libs/screenfull.js',
+               'js/libs/storage.js',
                'js/libs/jquery/jquery.js',
                'js/libs/jquery/jquery.transform.js',
                'js/libs/jquery/jquery.form.js',
index e47b0f47fbd1f319f28c52617519425ecf23d95e..32f4b50e23c24c0ac497ad3da58c41cfaebc0303 100644 (file)
@@ -85,16 +85,16 @@ class wsPackagerHTML5Link {
                return '';
        }
 
-       public function copyExternalFile($file, $video=false) {
+       public function copyExternalFile($file, $video = false) {
                $this->packager->copyLinkFile($file, 'data/links/', $video);
        }
 
        public function getCSSContainer() {
                $css = '#link' . $this->id . '{';
-               $css.='left:' . $this->left . 'px;top:' . $this->top . 'px;';
-               $css.='width:' . $this->width . 'px;height:' . $this->height . 'px;';
-               $css.=$this->getCSS();
-               $css.='}';
+               $css .= 'left:' . $this->left . 'px;top:' . $this->top . 'px;';
+               $css .= 'width:' . $this->width . 'px;height:' . $this->height . 'px;';
+               $css .= $this->getCSS();
+               $css .= '}';
                return $css;
        }
 
@@ -102,7 +102,7 @@ class wsPackagerHTML5Link {
                return '';
        }
 
-       public static function getUniversalLocation($loc, $css=false) {
+       public static function getUniversalLocation($loc, $css = false) {
                $datas = parse_url($loc);
 
                if (isset($datas['scheme']) && !is_null($datas['scheme'])) {
@@ -143,7 +143,7 @@ class normalLink extends wsPackagerHTML5Link {
 }
 
 class contentLink extends wsPackagerHTML5Link {
-       
+
 }
 
 class webLink extends normalLink {
@@ -157,7 +157,7 @@ class webLink extends normalLink {
        }
 
        public function getCSS() {
-               
+
        }
 
 }
@@ -202,20 +202,19 @@ class videoLink extends wsPackagerHTML5Link {
 
                $res = '<video width="' . $w . '" height="' . $h . '"';
                if ($this->video_auto_start) {
-                       $res.=' autoplay="autoplay"';
+                       $res .= ' autoplay="autoplay"';
                }
                if ($this->video_controls) {
-                       $res.=' controls="controls"';
+                       $res .= ' controls="controls"';
                }
                if ($this->video_loop) {
-                       $res.=' loop="loop"';
+                       $res .= ' loop="loop"';
                }
                if (!$this->video_sound_on) {
-                       $res.=' audio="muted"';
+                       $res .= ' audio="muted"';
                }
-               $res.=' poster="data/links/' . $basename . '.jpg"';
-               $res.='>';
-
+               $res .= ' poster="data/links/' . $basename . '.jpg"';
+               $res .= '>';
 
 
                $this->copyExternalFile($this->to, true);
@@ -224,15 +223,15 @@ class videoLink extends wsPackagerHTML5Link {
                        if ($type != '') {
                                $type = " type='" . $type . "'";
                        }
-                       $res.='<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . ' />';
+                       $res .= '<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . ' />';
                }
                $flashvars = array('video' => wsPackagerHTML5Link::getUniversalLocation($basename . '.mp4'),
-                       'poster' => wsPackagerHTML5Link::getUniversalLocation($basename . '.jpg'),
-                       'controls' => $this->video_controls == '1',
-                       'autoPlay' => $this->video_auto_start == '1',
-                       'loop' => $this->video_loop);
-               $res.=cubeMedia::flashObject('swf/video.swf', $w, $h, $flashvars, 'swfplayer-' . $basename, '', 9, '#ffffff', '', 'true', 'noscale', 'normal');
-               $res.='</video>';
+                                  'poster' => wsPackagerHTML5Link::getUniversalLocation($basename . '.jpg'),
+                                  'controls' => $this->video_controls == '1',
+                                  'autoPlay' => $this->video_auto_start == '1',
+                                  'loop' => $this->video_loop);
+               $res .= cubeMedia::flashObject('swf/video.swf', $w, $h, $flashvars, 'swfplayer-' . $basename, '', 9, '#ffffff', '', 'true', 'noscale', 'normal');
+               $res .= '</video>';
                return $res;
        }
 
@@ -268,7 +267,7 @@ class actionLink extends internalLink {
 }
 
 class basketLink extends wsPackagerHTML5Link {
-       
+
 }
 
 class colorLink extends contentLink {