diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/.cvsignore | 1 | ||||
-rw-r--r-- | theme/video-play-dcr.tpl.php | 17 | ||||
-rw-r--r-- | theme/video-play-divx.tpl.php | 26 | ||||
-rw-r--r-- | theme/video-play-flash.tpl.php | 20 | ||||
-rw-r--r-- | theme/video-play-flv.tpl.php | 14 | ||||
-rw-r--r-- | theme/video-play-html5.tpl.php | 32 | ||||
-rw-r--r-- | theme/video-play-quicktime.tpl.php | 32 | ||||
-rw-r--r-- | theme/video-play-realmedia.tpl.php | 22 | ||||
-rw-r--r-- | theme/video-play-theora.tpl.php | 23 | ||||
-rw-r--r-- | theme/video-play-windowsmedia.tpl.php | 21 |
10 files changed, 208 insertions, 0 deletions
diff --git a/theme/.cvsignore b/theme/.cvsignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/theme/.cvsignore @@ -0,0 +1 @@ +.DS_Store diff --git a/theme/video-play-dcr.tpl.php b/theme/video-play-dcr.tpl.php new file mode 100644 index 0000000..dd9f86d --- /dev/null +++ b/theme/video-play-dcr.tpl.php @@ -0,0 +1,17 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle director output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + */ +?> +<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" type="application/x-director" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,0,0,0"> + <param name="src" value="<?php print $video->files->{$video->player}->url; ?>" /> + <object class="video-object" type="application/x-director" data="<?php print $video->files->{$video->player}->url; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>" mode="zero"> + <?php print t('No video? Get the Director !plugin', array('!plugin' => l(t('Plugin'), 'http://www.macromedia.com/shockwave/download/'))); ?> + </object> +</object>
\ No newline at end of file diff --git a/theme/video-play-divx.tpl.php b/theme/video-play-divx.tpl.php new file mode 100644 index 0000000..3148efa --- /dev/null +++ b/theme/video-play-divx.tpl.php @@ -0,0 +1,26 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle divx output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + * http://labs.divx.com/Webplayer + * http://labs.divx.com/WebPlayerCodeGenerator + * + */ +?> + +<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> + <param name="src" value="<?php print $video->files->{$video->player}->url; ?>" /> + <param value="<?php print $video->autoplay ? 'true' : 'false'; ?>" name="autoPlay"> + <param name="pluginspage" value="http://go.divx.com/plugin/download/" /> + <param value="none" name="custommode"> + <param name="previewImage" value="<?php print $video->thumbnail->url; ?>" /> + <object class="video-object" type="video/divx" data="<?php print $video->files->{$video->player}->url; ?>" previewImage="<?php print $video->thumbnail->url; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>" autoplay="<?php print $video->autoplay ? 'true' : 'false'; ?>" mode="large" custommode="none"> + <?php print t('No video? Get the DivX Web Player !plugin', array('!plugin' => l(t('Plugin'), 'http://go.divx.com/plugin/download/'))); ?> + </object> +</object>
\ No newline at end of file diff --git a/theme/video-play-flash.tpl.php b/theme/video-play-flash.tpl.php new file mode 100644 index 0000000..264578c --- /dev/null +++ b/theme/video-play-flash.tpl.php @@ -0,0 +1,20 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle flash output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + */ +?> +<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"> + <param name="movie" value="<?php print $video->files->{$video->player}->url; ?>" /> + <param name="autoplay" value="<?php print $video->autoplay; ?>" /> + <param name="wmode" value="transparent" /> + <object class="video-object" type="application/x-shockwave-flash" data="<?php print $video->files->{$video->player}->url; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <?php print t('No video? Get the Adobe Flash !plugin', array('!plugin' => l(t('Plugin'), 'http://get.adobe.com/flashplayer/'))); ?> + </object> +</object>
\ No newline at end of file diff --git a/theme/video-play-flv.tpl.php b/theme/video-play-flv.tpl.php new file mode 100644 index 0000000..661ad04 --- /dev/null +++ b/theme/video-play-flv.tpl.php @@ -0,0 +1,14 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle flv output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * $themed_output is the rendered html. + * + */ +print $themed_output; +?>
\ No newline at end of file diff --git a/theme/video-play-html5.tpl.php b/theme/video-play-html5.tpl.php new file mode 100644 index 0000000..8f97650 --- /dev/null +++ b/theme/video-play-html5.tpl.php @@ -0,0 +1,32 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle HTML5 output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + * @TODO : Fallback to flash should be done nicely + * + */ +?> + <!-- 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 diff --git a/theme/video-play-quicktime.tpl.php b/theme/video-play-quicktime.tpl.php new file mode 100644 index 0000000..a69ce26 --- /dev/null +++ b/theme/video-play-quicktime.tpl.php @@ -0,0 +1,32 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle quicktime output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + * + * <script type="text/javascript" src="/sites/all/libraries/quicktime/AC_QuickTime.js"></script> + * <script type="text/javascript"> + * QT_WriteOBJECT('<?php print $video->files->{$video->player}->url; ?>' , '<?php print $video->width; ?>', '<?php print $video->height; ?>' , ''); + * </script> + */ +?> +<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <param name="src" value="<?php print $video->files->{$video->player}->url; ?>" /> + <param name="controller" value="true" /> + <param name="scale" value="tofit" /> + <param name="autoplay" value="<?php print $video->autoplay ? 'true' : 'false'; ?>" /> + <param name="pluginurl" value="http://www.apple.com/quicktime/download/" /> + <embed src="<?php print $video->files->{$video->player}->url; ?>" + type="video/quicktime" + pluginspage="http://www.apple.com/quicktime/download/" + width="<?php print $video->player_width; ?>" + height="<?php print $video->player_height; ?>" + autostart="<?php print $video->autoplay ? 'true' : 'false'; ?>" + controller="true" > + </embed> +</object>
\ No newline at end of file diff --git a/theme/video-play-realmedia.tpl.php b/theme/video-play-realmedia.tpl.php new file mode 100644 index 0000000..738137f --- /dev/null +++ b/theme/video-play-realmedia.tpl.php @@ -0,0 +1,22 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle realmedia output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + */ +?> +<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <param name="src" value="<?php print $video->files->{$video->player}->url; ?>" /> + <param name="autostart" value="<?php print $video->autoplay; ?>" /> + <param name="controls" value="imagewindow" /> + <param name="console" value="video" /> + <param name="loop" value="false" /> + <object class="video-object" type="audio/x-pn-realaudio-plugin" data="<?php print $video->files->{$video->player}->url; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <?php print t('No video? Get the Real Media !plugin', array('!plugin' => l(t('Plugin'), 'http://www.real.com/realplayer'))); ?> + </object> +</object>
\ No newline at end of file diff --git a/theme/video-play-theora.tpl.php b/theme/video-play-theora.tpl.php new file mode 100644 index 0000000..a943d13 --- /dev/null +++ b/theme/video-play-theora.tpl.php @@ -0,0 +1,23 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle ogg theora output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + */ +?> +<applet=code="com.fluendo.player.Cortado.class" archive="<?php print $video->theora_player; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <param name="url" value="<?php print $video->files->{$video->player}->url; ?>" /> + <param name="local" value="false" /> + <param name="mode" value="zero" /> + <param name="keepaspect" value="true" /> + <param name="video" value="true" /> + <param name="audio" value="true" /> + <param name="seekable" value="true" /> + <param name="bufferSize" value="200" /> + <?php print t('No video? Get the Latest Cortado !plugin', array('!plugin' => l(t('Plugin'), 'http://www.theora.org/cortado/'))); ?> +</applet>
\ No newline at end of file diff --git a/theme/video-play-windowsmedia.tpl.php b/theme/video-play-windowsmedia.tpl.php new file mode 100644 index 0000000..df0838c --- /dev/null +++ b/theme/video-play-windowsmedia.tpl.php @@ -0,0 +1,21 @@ +<?php +//$Id$ +/* + * @file + * Theme file to handle windows media output. + * + * Variables passed. + * $video is the video object. + * $node is the node object. + * + */ +?> + +<object type="video/x-ms-wmv" data="<?php print $video->files->{$video->player}->url; ?>" width="<?php print $video->player_width; ?>" height="<?php print $video->player_height; ?>"> + <param name="src" value="<?php print $video->files->{$video->player}->url; ?>" valuetype="ref" type="<?php print $video->files->{$video->player}->url; ?>"> + <param name="animationatStart" value="true"> + <param name="transparentatStart" value="true"> + <param name="autostart" value="<?php print $video->autoplay; ?>"> + <param name="controller" value="1"> + <?php print t('No video? Get the Windows Media !plugin', array('!plugin' => l(t('Plugin'), 'http://www.microsoft.com/windows/windowsmedia/player/download/'))); ?> +</object>
\ No newline at end of file |