aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-21 18:03:45 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-21 18:03:45 +0000
commit964d84132d8699db78cd36ac5c54f252315ef1d0 (patch)
treeca816d8fa536f9f764f4cb4049fbab31f9ea9229 /video.module
parent749a91f80a644bd7d2222309289c32a5bb728ef2 (diff)
downloadvideo-964d84132d8699db78cd36ac5c54f252315ef1d0.tar.gz
video-964d84132d8699db78cd36ac5c54f252315ef1d0.tar.bz2
Patch #70049 by agilpwc (http://drupal.org/user/49395)
.flv base url incorrect Solved and incorrect url passed to flowplayer if file is .flv
Diffstat (limited to 'video.module')
-rw-r--r--video.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/video.module b/video.module
index bb9d86c..b69b20d 100644
--- a/video.module
+++ b/video.module
@@ -807,6 +807,7 @@ function theme_video_play_flash($node) {
$url = _video_get_fileurl($node->vidfile);
$file = basename($url);
+ $base_url = substr($url, 0, strrpos($url, '/'));
// this will be executed by not Internet Explorer browsers
$output = '<!--[if !IE]> <-->
@@ -825,7 +826,7 @@ codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
$output .= '<param name="movie" value="' . check_plain($loader_location) . '" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="high" />
- <param name="FlashVars" value="baseURL='. $url .'&videoFile='. $file .'&autoPlay=true&bufferLength=5" />' . "\n"
+ <param name="FlashVars" value="baseURL='. $base_url .'&videoFile='. $file .'&autoPlay=true&bufferLength=5" />' . "\n"
. _video_get_parameters($node) .
'<p>'. t('Your browser is not able to display this multimedia content.') .'</p>
</object>';