diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-04 23:20:28 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-04 23:20:28 +0530 |
commit | 72f7b7109d1cdf3ec1f5fb022170dedc8c9dc5e1 (patch) | |
tree | 4df43cb8b1a5371f792ca5bf657fdf0c4de32cf6 /theme/video-play-html5.tpl.php | |
parent | 554508a1df489a8634e876ada1fa3ddd66375f7a (diff) | |
download | video-72f7b7109d1cdf3ec1f5fb022170dedc8c9dc5e1.tar.gz video-72f7b7109d1cdf3ec1f5fb022170dedc8c9dc5e1.tar.bz2 |
Creating presets which can be exported with features, chostools and move subsidary module to modules directory
Diffstat (limited to 'theme/video-play-html5.tpl.php')
-rw-r--r-- | theme/video-play-html5.tpl.php | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/theme/video-play-html5.tpl.php b/theme/video-play-html5.tpl.php index 7153908..038fa20 100644 --- a/theme/video-play-html5.tpl.php +++ b/theme/video-play-html5.tpl.php @@ -11,21 +11,22 @@ * */ ?> - <!-- 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; ?>"> - <?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 foreach ($video->files as $filetype => $file): ?> - <?php $filepath = $file->url; ?> - <?php $mimetype = file_get_mimetype($file->filename); ?> - <?php if (array_key_exists($mimetype, $codecs)): ?> - <?php $mimetype = ($mimetype == 'video/quicktime') ? 'video/mp4' : $mimetype; ?> - <?php if($mimetype == 'video/mp4' || $mimetype == 'video/flv') $flash = $filepath;?> - <?php $videojs_sources .= "<source src=\"$filepath\" type='$mimetype; codecs=\"" . $codecs[$mimetype] . "\"' />"; ?> - <?php endif; ?> - <?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); ?> - </video>
\ No newline at end of file +<!-- 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; ?>"> + <?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 foreach ($video->files as $filetype => $file): ?> + <?php $filepath = $file->url; ?> + <?php $mimetype = file_get_mimetype($file->filename); ?> + <?php if (array_key_exists($mimetype, $codecs)): ?> + <?php $mimetype = ($mimetype == 'video/quicktime') ? 'video/mp4' : $mimetype; ?> + <?php if ($mimetype == 'video/mp4' || $mimetype == 'video/flv') + $flash = $filepath; ?> + <?php $videojs_sources .= "<source src=\"$filepath\" type='$mimetype; codecs=\"" . $codecs[$mimetype] . "\"' />"; ?> + <?php endif; ?> + <?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); ?> +</video>
\ No newline at end of file |