aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>';