aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglen201 <glen201@527446.no-reply.drupal.org>2009-07-24 04:44:04 +0000
committerglen201 <glen201@527446.no-reply.drupal.org>2009-07-24 04:44:04 +0000
commit5955eb6ff6d8c64758c992c9d1d4c73fab35a162 (patch)
tree0a64ab0492f6cd4f41ba77a633a24bdbea86032a
parentdac773de5327d0fbfca02c25743a68d32eab3b6d (diff)
downloadvideo-5955eb6ff6d8c64758c992c9d1d4c73fab35a162.tar.gz
video-5955eb6ff6d8c64758c992c9d1d4c73fab35a162.tar.bz2
Fixed new AutoPlay feature broke Quicktime, Realmedia, WindowsMedia players
GMM: Added Autoplay feature to FLV player
-rw-r--r--includes/common.inc9
1 files changed, 5 insertions, 4 deletions
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 <fvaresano at yahoo dot it>
* porting to Drupal 6
* @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com>
+ * @author Glen Marianko Twitter@demoforum <glenm at demoforum dot com>
* @todo
*/
@@ -88,7 +89,7 @@ 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);
+ $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 .= '<param name="movie" value="' . url() . check_plain($loader_location) . '" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
@@ -246,7 +247,7 @@ data="'. $url .'">
// params will be passed to both IE or not IE browsers
$output .= '<param name="src" value="'. $url .'" />
- <param name="AUTOPLAY" value="'.variable_get('video_autoplay', TRUE) ? 'true' : 'false'.'" />
+ <param name="AUTOPLAY" value="'.(variable_get('video_autoplay', TRUE) ? 'true' : 'false').'" />
<param name="KIOSKMODE" value="false" />' . "\n"
. _video_get_parameters($node) .
'<p>'. t('Your browser is not able to display this multimedia content.') .'</p>
@@ -298,7 +299,7 @@ classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" >
$output .= '<param name="src" value="'. $url .'" />
<param name="_ExtentX" value="7276" />
<param name="" value="3307" />
- <param name="AUTOSTART" value="'.variable_get('video_autoplay', TRUE) ? 'true' : 'false'.'" />
+ <param name="AUTOSTART" value="'.(variable_get('video_autoplay', TRUE) ? 'true' : 'false').'" />
<param name="SHUFFLE" value="0" />
<param name="PREFETCH" value="0" />
<param name="NOLABELS" value="0" />
@@ -351,7 +352,7 @@ classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" >
<param name="URL" value="'.$url.'" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
- <param name="autoStart" value="'.variable_get('video_autoplay', TRUE) ? 'true' : 'false'.'" />
+ <param name="autoStart" value="'.(variable_get('video_autoplay', TRUE) ? 'true' : 'false').'" />
<param name="showControls" value="true" />
<param name="loop" value="true" />'
. _video_get_parameters($node) .