From 5955eb6ff6d8c64758c992c9d1d4c73fab35a162 Mon Sep 17 00:00:00 2001 From: glen201 Date: Fri, 24 Jul 2009 04:44:04 +0000 Subject: Fixed new AutoPlay feature broke Quicktime, Realmedia, WindowsMedia players GMM: Added Autoplay feature to FLV player --- includes/common.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 8b24d3d..c86cc57 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7,6 +7,7 @@ * @author Fabio Varesano * porting to Drupal 6 * @author Heshan Wanigasooriya + * @author Glen Marianko Twitter@demoforum * @todo */ @@ -88,7 +89,7 @@ codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve ' . "\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); + $config = sprintf("config={'playerId':'player','clip':{'url':'%s'},'playlist':[{'url':'%s','autoPlay':%s}]}", $base_url . '/' . $file, $base_url . '/' . $file, (variable_get('video_autoplay', TRUE) ? 'true' : 'false')); $output .= ' @@ -246,7 +247,7 @@ data="'. $url .'"> // params will be passed to both IE or not IE browsers $output .= ' - + ' . "\n" . _video_get_parameters($node) . '

'. t('Your browser is not able to display this multimedia content.') .'

@@ -298,7 +299,7 @@ classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" > $output .= ' - + @@ -351,7 +352,7 @@ classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" > - + ' . _video_get_parameters($node) . -- cgit v1.2.3