The video allways autoplays, no matter what.
/**
* the embedded flash displaying the ustream video
*/
function theme_emvideo_ustream_flash($embed, $width, $height, $autoplay, $options = array()) {
static $counter;
if ($embed) {
$counter++;
$autoplay = isset($options['autoplay']) ? $options['autoplay'] : $autoplay;
$autoplay_value = $autoplay ? 'true' : 'false';
$output .= "<object type='application/x-shockwave-flash' height='$height' width='$width' data='http://ustream.tv/flash/video/$embed' id='ustream-video-$counter' ><param name='movie' value='http://www.ustream.tv/flash/video/$embed' /><param name='allowScriptAccess' value='always' /><param name='quality' value='best' /><param name='scale' value='noScale' /><param name='wmode' value='transparent' /><param name='FlashVars' value='autoplay=$autoplay_value' /><param name='allowfullscreen' value='true' /></object>";
}
return $output;
}
Setting the autoplay to false here stops this.
<param name='FlashVars' value='autoplay=false' />
Comments
Comment #1
KAP10 commentedI have the same problem. UStream video plays automatically even though I have set it to "no" in the field settings. I would like to try your solution, but I don't know the location of the FILE where I can insert
. Can you help direct me?
Comment #2
lyricnz commentedSame problem here, with current emfield release. The problem is that theme_emvideo_video_video() calls the provider theming function with the following arguments:
However ustream gets these arguments wrong:
ie: missing out $node. This same bug is in ustream.inc, ustreamlive.inc and voicethread.inc.
Comment #3
KAP10 commentedUser fixed own problem.
Comment #4
XiaN Vizjereij commentedWow wait a minute .. thats an bug in the ustream.inc, ustreamlive.inc and voicethread.inc code, isn't it?
Comment #5
lyricnz commentedYes, the bug still exists, as described in #2.
Comment #6
aaron commentedawesome, thanks @lyricnz!