aboutsummaryrefslogtreecommitdiff
path: root/theme/video-play-divx.tpl.php
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-05 12:56:20 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-05 12:56:20 +0000
commitb6e86040dd3faa3a70ec16e77220d852bdb09a04 (patch)
treecdb4282446dfb0efd750b87a7aaedd30229f0ff9 /theme/video-play-divx.tpl.php
parent973537f36c8f33473a00190aa64fc30b82d94c04 (diff)
downloadvideo-b6e86040dd3faa3a70ec16e77220d852bdb09a04.tar.gz
video-b6e86040dd3faa3a70ec16e77220d852bdb09a04.tar.bz2
Adding latest files.
Diffstat (limited to 'theme/video-play-divx.tpl.php')
-rw-r--r--theme/video-play-divx.tpl.php26
1 files changed, 26 insertions, 0 deletions
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