aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-17 02:26:11 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-17 02:26:11 +0000
commita47b9e621c7f1287058064ba9f0fd33340b17f86 (patch)
treecbd27e32fc42c1be3c7e41518b5c25bb3f165591 /includes
parent8fd834b1efd6af1de4d1af926b05c1404bf2ac86 (diff)
downloadvideo-a47b9e621c7f1287058064ba9f0fd33340b17f86.tar.gz
video-a47b9e621c7f1287058064ba9f0fd33340b17f86.tar.bz2
updating common.inc, adding FlowPlayer 3.1 and later support
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 608b6ee..18b8925 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -88,17 +88,19 @@ codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
<![endif]-->' . "\n";
// params will be passed to both IE or not IE browsers
+ $config = sprintf("config={'playerId':'player','clip':{'url':'%s'},'playlist':[{'url':'%s'}]}", $base_url . '/' . $file, $base_url . '/' . $file);
$output .= '<param name="movie" value="' . url() . check_plain($loader_location) . '" />
+ <param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="high" />
- <param name="flashvars" value="config={baseURL:\''. $base_url .'\',videoFile:\''. $file .'\',autoPlay:true,bufferLength:5}" />' . "\n"
+ <param name="flashvars" value="' . $config . '" />'
. _video_get_parameters($node) .
'<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/go/getflashplayer'),
- t('Link to Macromedia Flash Player Download Page'),
+ $output = theme('video_format_play', $output, t('http://get.adobe.com/flashplayer/'),
+ t('Link to Adobe Flash Player Download Page'),
t('Download latest Flash Player'));
return $output;
}