]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 13 Aug 2011 23:08:38 +0000 (23:08 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 13 Aug 2011 23:08:38 +0000 (23:08 +0000)
inc/ws/Util/packager/html5/class.ws.packager.html5.links.php

index 6d83540dbc9f54a100996ab28c510b6b0dbf8e81..489cc3f1c487a8b968e75af7ad6b4089ef190cac 100644 (file)
@@ -198,7 +198,7 @@ class videoLink extends wsPackagerHTML5Link {
                $ext = array_pop($e);
                $basename = implode('.', $e);
 
-               $res = '<video width="' . $this->width . '" height="' . $this->height . '"';
+               $res = '<video width="' . round($this->width) . '" height="' . round($this->height) . '"';
                if ($this->video_auto_start) {
                        $res.=' autoplay="autoplay"';
                }
@@ -217,12 +217,12 @@ class videoLink extends wsPackagerHTML5Link {
 
 
                $this->copyExternalFile($this->to, true);
-               $types = array('mp4' => '', 'webm' => 'video/webm; codecs="vp8, vorbis"', 'ogv' => 'video/ogg; codecs="theora, vorbis"');
+               $types = array( 'webm' => 'video/webm; codecs="vp8, vorbis"', 'ogv' => 'video/ogg; codecs="theora, vorbis"','mp4' => '');
                foreach ($types as $ext => $type) {
                        if ($type != '') {
                                $type = " type='" . $type . "'";
                        }
-                       $res.='<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . '></source>';
+                       $res.='<source src="' . wsPackagerHTML5Link::getUniversalLocation($basename . '.' . $ext) . '"' . $type . ' />';
                }
                $res.='</video>';
                return $res;