aboutsummaryrefslogtreecommitdiff
path: root/theme/video-play-html5.tpl.php
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
committerHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
commit7235ebc06e881ebefe1d2c45a3b0f5304e26b936 (patch)
tree43a58a1a988ad29a03fde22e638f234564cfc275 /theme/video-play-html5.tpl.php
parentf1b598ecbcc28304aa33d98d6c42ab29af1c2b42 (diff)
downloadvideo-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.gz
video-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.bz2
Completed general video upload with Video field and auto thumbnails creation using FFMPEG
Diffstat (limited to 'theme/video-play-html5.tpl.php')
-rw-r--r--theme/video-play-html5.tpl.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/theme/video-play-html5.tpl.php b/theme/video-play-html5.tpl.php
index 038fa20..cb4d51a 100644
--- a/theme/video-play-html5.tpl.php
+++ b/theme/video-play-html5.tpl.php
@@ -15,10 +15,10 @@
<video width="<?php echo $video->player_width; ?>" autobuffer="<?php print $video->autobuffering; ?>" height="<?php echo $video->player_height; ?>" controls="controls" preload="auto" poster="<?php echo $video->thumbnail->url; ?>">
<?php //dd($items); ?>
<?php static $videojs_sources; ?>
- <?php $codecs = array('video/mp4' => 'avc1.42E01E, mp4a.40.2', 'video/webm' => 'vp8, vorbis', 'video/ogg' => 'theora, vorbis', 'video/ogv' => 'theora, vorbis', 'video/quicktime' => 'avc1.42E01E, mp4a.40.2'); ?>
+ <?php $codecs = array('video/mp4' => 'avc1.42E01E, mp4a.40.2', 'video/webm' => 'vp8, vorbis', 'video/ogg' => 'theora, vorbis', 'application/ogg' => 'theora, vorbis', 'video/ogv' => 'theora, vorbis', 'video/quicktime' => 'avc1.42E01E, mp4a.40.2'); ?>
<?php foreach ($video->files as $filetype => $file): ?>
<?php $filepath = $file->url; ?>
- <?php $mimetype = file_get_mimetype($file->filename); ?>
+ <?php $mimetype = file_get_mimetype($file->filepath); ?>
<?php if (array_key_exists($mimetype, $codecs)): ?>
<?php $mimetype = ($mimetype == 'video/quicktime') ? 'video/mp4' : $mimetype; ?>
<?php if ($mimetype == 'video/mp4' || $mimetype == 'video/flv')
@@ -28,5 +28,5 @@
<?php endforeach; ?>
<?php print $videojs_sources; ?>
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
-<?php echo theme('video_flv', $video, $node); ?>
+<?php //echo theme('video_flv', (array)$video, array()); ?>
</video> \ No newline at end of file