aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-13 17:28:48 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-13 17:28:48 +0000
commit40dff270e7aaca67d6b5633dd842d4239aa1a65d (patch)
tree9719f095a66f9207af9dba0b587cc618f9df0f77 /video.module
parentc933d514eea5b207b903c9ca6daf8ca56677e2df (diff)
downloadvideo-40dff270e7aaca67d6b5633dd842d4239aa1a65d.tar.gz
video-40dff270e7aaca67d6b5633dd842d4239aa1a65d.tar.bz2
Add flowplayer width to the object tag width.
Diffstat (limited to 'video.module')
-rw-r--r--video.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/video.module b/video.module
index dd6bd78..33a4c3c 100644
--- a/video.module
+++ b/video.module
@@ -930,16 +930,18 @@ function theme_video_play_flash($node) {
$url = _video_get_fileurl($node->vidfile);
$file = basename($url);
$base_url = substr($url, 0, strrpos($url, '/'));
+
+ $height = $node->videoy + 24; // add commands height
// this will be executed by not Internet Explorer browsers
$output = '<!--[if !IE]> <-->
-<object type="application/x-shockwave-flash" width="'. $node->videox .'" height="'. $node->videoy .'"
+<object type="application/x-shockwave-flash" width="'. $node->videox .'" height="'. $height .'"
data="'. url() . check_plain($loader_location) .'">
<!--> <![endif]-->' . "\n";
// this will be executed by Internet Explorer
$output .= '<!--[if IE]>
-<object type="application/x-shockwave-flash" width="'. $node->videox .'" height="'. $node->videoy .'"
+<object type="application/x-shockwave-flash" width="'. $node->videox .'" height="'. $height .'"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<![endif]-->' . "\n";