function theme_video_play_dcr in Video 6.3
Same name and namespace in other branches
- 5 includes/common.inc \theme_video_play_dcr()
- 6 includes/common.inc \theme_video_play_dcr()
- 6.2 includes/common.inc \theme_video_play_dcr()
Play Director .dcr/.dir files.
Parameters
$node: object with node information
Return value
string of content to display
1 theme call to theme_video_play_dcr()
- _video_common_get_player in includes/
common.inc - Get the object for the suitable player for the parameter resource
File
- includes/
common.inc, line 174 - Add some common functions for the various video types supported
Code
function theme_video_play_dcr($element) {
$video = file_create_url($element['#item']['filepath']);
$width = isset($element['#item']['data']['width']) ? $element['#item']['data']['width'] : '';
$height = isset($element['#item']['data']['height']) ? $element['#item']['data']['height'] : '';
$width = empty($width) ? '350px' : $width . 'px';
$height = empty($height) ? '285px' : $height . 'px';
// this will be executed by not Internet Explorer browsers
$output = '<!--[if !IE]> <-->
<object type="application/x-director" width="' . $width . '" height="' . $height . '"
data="' . $video . '">
<!--> <![endif]-->' . "\n";
// this will be executed by Internet Explorer
$output .= '<!--[if IE]>
<object type="application/x-director" width="' . $width . '" height="' . $height . '"
classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,0,0,0">
<![endif]-->' . "\n";
// params will be passed to both IE or not IE browsers
$output .= '<param name="src" value="' . $video . '" />' . "\n" . '<p>' . t('Your browser is not able to display this multimedia content.') . '</p>
</object>';
/*
$output = theme('video_format_play', $output, t('http://www.macromedia.com/shockwave/download/'),
t('Link to Macromedia Shockwave Player Download Page'),
t('Download latest Shockwave Player'));*/
return $output;
}