You are here

function theme_video_play_divx in Video 6

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

Play videos from in DivX 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_divx()
_video_common_get_player in includes/common.inc
Get the object for the suitable player for the parameter resource

File

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

Code

function theme_video_play_divx($node) {

  //Increase the height to accommodate the player controls on the bottom.
  $height = $node->video_scaled_y + 20;
  $url = _video_get_fileurl($node->vidfile);
  $output = '<!-- [if IE] -->
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="' . $node->video_scaled_x . '" height="' . $height . '" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<!--> <![endif]-->' . "\n";

  // this will be executed by not Internet Explorer browsers
  $output = '<!-- [if !IE] -->
<object type="video/divx" data="' . $url . '" width="' . $node->video_scaled_x . '" height="' . $height . '" mode="zero">
<!--> <![endif]-->' . "\n";
  $output .= '<param name="src" value="' . $url . '"/>' . "\n";
  $output .= '<param name="mode" value="zero"/>' . "\n";
  $output .= '</object>';
  $output = theme('video_format_play', $output, t('http://www.divx.com/divx/webplayer/'), t('Link to DivX Download Page'), t('Download latest DivX Web Player'));
  return $output;
}