aboutsummaryrefslogtreecommitdiff
path: root/theme/video-play-quicktime.tpl.php
blob: 7e4fb297a05c29b8baa0662540a54c806781acb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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->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->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->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>