diff options
author | Heshan <heshan@heidisoft.com> | 2011-04-21 16:25:56 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-04-21 16:25:56 +0530 |
commit | 40e998a2d1e266504ea8f5f18b125c5d28bef76a (patch) | |
tree | 60a7bbc461605c1180533459a413198368307ef3 /theme/video-play-html5.tpl.php | |
parent | 0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a (diff) | |
download | video-40e998a2d1e266504ea8f5f18b125c5d28bef76a.tar.gz video-40e998a2d1e266504ea8f5f18b125c5d28bef76a.tar.bz2 |
Adding metadata for loading only thumbnails with HTML5 video when auto buffering is off
Diffstat (limited to 'theme/video-play-html5.tpl.php')
-rw-r--r-- | theme/video-play-html5.tpl.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/video-play-html5.tpl.php b/theme/video-play-html5.tpl.php index 78c5f8c..ea36134 100644 --- a/theme/video-play-html5.tpl.php +++ b/theme/video-play-html5.tpl.php @@ -12,7 +12,7 @@ */ ?> <!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody --> -<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; ?>"> +<video width="<?php echo $video->player_width; ?>" autobuffer="<?php print $video->autobuffering; ?>" height="<?php echo $video->player_height; ?>" controls="controls" preload="<?php print $video->autobuffering ? 'auto' : 'metadata'; ?>" 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', 'application/ogg' => 'theora, vorbis', 'video/ogv' => 'theora, vorbis', 'video/quicktime' => 'avc1.42E01E, mp4a.40.2'); ?> |