$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"';
}
$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;