You are here

function theme_video_play_quicktime in Video 6

Same name and namespace in other branches
  1. 5 includes/common.inc \theme_video_play_quicktime()
  2. 6.2 includes/common.inc \theme_video_play_quicktime()
  3. 6.3 includes/common.inc \theme_video_play_quicktime()

Play videos from in Quicktime format

Parameters

$node: object with node information

Return value

string of content to display

See also

http://developer.apple.com/internet/ieembedprep.html

1 theme call to theme_video_play_quicktime()
_video_common_get_player in includes/common.inc
Get the object for the suitable player for the parameter resource

File

includes/common.inc, line 226
Add some common functions for the various video types supported

Code

function theme_video_play_quicktime($node) {

  //Increase the height to accommodate the player controls on the bottom.
  $height = $node->video_scaled_y + 16;
  $url = _video_get_fileurl($node->vidfile);

  // this will be executed by not Internet Explorer browsers
  $output = '<!--[if !IE]> <-->
<object type="video/quicktime" width="' . $node->video_scaled_x . '" height="' . $height . '"
data="' . $url . '">
<!--> <![endif]-->' . "\n";

  // this will be executed by Internet Explorer
  $output .= '<!--[if IE]>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' . $node->video_scaled_x . '" height="' . $height . '" scale="tofit" >
<![endif]-->' . "\n";

  // params will be passed to both IE or not IE browsers
  $output .= '<param name="src" value="' . $url . '" />
              <param name="AUTOPLAY" value="true" />
              <param name="KIOSKMODE" value="false" />' . "\n" . _video_get_parameters($node) . '<p>' . t('Your browser is not able to display this multimedia content.') . '</p>
</object>';

  // only one </object> needed becouse only one opening tag has been parsed by browsers

  /*
  $output = '<script language="JavaScript" type="text/javascript">';
  $output .= "InsertQuicktimeVideo('{$node->vidfile}','$height','{$node->video_scaled_x}');";
  $output .= '</script>';
  */
  $output = theme('video_format_play', $output, t('http://www.apple.com/quicktime/download'), t('Link to QuickTime Download Page'), t('Download latest Quicktime Player'));
  return $output;
}