I have an embedded .flv movie that should only play when clicked, but it plays automatically.
It uses the FlowPlayer, and all the settings are all set to be false for playing automatically, but it seems to ignore these...

Help?

Comments

Stuart Greenfield’s picture

Do you have a link to a live page where this is happening? Or can you post a code extract from the code that is producing the player? It sounds like the "autoPlay" parameter is not getting to false, but not sure why that should be.

Also double check that on your FlowPlayer settings page autoPlay is showing as False.

Anonymous’s picture

Hi Stuart,

You can see the video here: http://drupal.brat.info/

And here's the code that produces it:

<div class="swftools">
<object height="150" width="200" id="swf12286945171" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="http://drupal.brat.info/sites/all/modules/swftools/shared/flowplayer/FlowPlayerClassic.swf" name="movie"/>
<param value="sameDomain" name="allowScriptAccess"/>
<param value="opaque" name="wmode"/>
<param value="#000000" name="bgcolor"/>
<param value="showall" name="scale"/>
<param value="autohigh" name="quality"/>
<param value="default" name="align"/>
<param value="false" name="allowfullscreen"/>
<param value="http://drupal.brat.info/sites/default/files/" name="base"/>
<param value="false" name="play"/>
<param value="false" name="menu"/>
<param value="false" name="loop"/>
<param value="player=flowplayer/FlowPlayerClassic.swf&amp;width=200&amp;height=150&amp;config=%7B%20%27videoFile%27:%20%27http://drupal.brat.info/sites/default/files/welcome.flv%27%2C%20%27autoPlay%27:%20false%2C%20%27initialVolumePercentage%27:%20%27100%27%2C%20%27hideControls%27:%20true%2C%20%27loop%27:%20false%2C%20%27showFullScreenButton%27:%20false%20%7D&amp;videoFile=http://drupal.brat.info/sites/default/files/welcome.flv" name="flashvars"/>
<!--[if gte IE 7]>-->
<object height="150" width="200" data="http://drupal.brat.info/sites/all/modules/swftools/shared/flowplayer/FlowPlayerClassic.swf" type="application/x-shockwave-flash">
<param value="sameDomain" name="allowScriptAccess"/>
<param value="opaque" name="wmode"/>
<param value="#000000" name="bgcolor"/>
<param value="showall" name="scale"/>
<param value="autohigh" name="quality"/>
<param value="default" name="align"/>
<param value="false" name="allowfullscreen"/>
<param value="http://drupal.brat.info/sites/default/files/" name="base"/>
<param value="false" name="play"/>
<param value="false" name="menu"/>
<param value="false" name="loop"/>
<param value="player=flowplayer/FlowPlayerClassic.swf&amp;width=200&amp;height=150&amp;config=%7B%20%27videoFile%27:%20%27http://drupal.brat.info/sites/default/files/welcome.flv%27%2C%20%27autoPlay%27:%20false%2C%20%27initialVolumePercentage%27:%20%27100%27%2C%20%27hideControls%27:%20true%2C%20%27loop%27:%20false%2C%20%27showFullScreenButton%27:%20false%20%7D&amp;videoFile=http://drupal.brat.info/sites/default/files/welcome.flv" name="flashvars"/>
<!--<![endif]-->
<p>You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly.</p>
<!--[if gte IE 7]>-->
</object>
<!--<![endif]-->
</object>
</div>

Autoplay setting for FlowPlayer is set to false.

Anonymous’s picture

Just to let you know:
As the site is going live soon, I've changed the settings to make the video play automatically (so as to remove the play button that does nothing).
I would still prefer it to not play automatically though...

Anonymous’s picture

Category: support » bug

I just changed everything back to my preferred settings and the video still plays automatically, even though everything is set to 'Autoplay=false'. Any update on this issue?

Anonymous’s picture

Any update on this?

Stuart Greenfield’s picture

Status: Active » Fixed

This looks like it is related to playback of FLV files that are missing metadata in their header (which is also the cause of #395502: No video in FlowPlayer3).

If I playback a known good flv locally, using

<swf file="test.flv" player="flowplayer_mediaplayer" autoPlay="false">

Then I get a FlowPlayer with a play button in the middle, and it waits to be clicked before starting.

If I download your video file from brat.info and use the same filter

<swf file="welcome.flv" player="flowplayer_mediaplayer" autoPlay="false">

then FlowPlayer ignores the autoPlay setting and starts automatically.

We know from the #395502 that welcome.flv doesn't have any metadata. Adobe Flash Media Server includes a little tool called flvcheck. I ran that on welcome.flv and it reports Error: -119 Missing FLV metadata..

If you run a repair, using flvcheck -m welcome.flv it tries to repair the file by adding the missing metadata. If you run the repaired file through FlowPlayer then it behaves and it waits for you to click.

So, I'd suggest grabbing a copy of Adobe Media Server (the development edition is free, although that is quite a big download just to get the flvcheck tool!). Alternatively there are a number of files that show up on Google, but I have no idea if they are any good!

For other readers - you can check if your flv file is missing metadata without using any special tools by opening it in a text or hex editor. There's a description here of what to do.

I am going to set this thread to fixed since we have almost certainly identifed the issue here, although please re-open it if needed.

Anonymous’s picture

That makes sense. Thanks for the help Stuart!

Anonymous’s picture

For anyone interested, I use Ubuntu so was trying to find a Linux .flv editor. I found YAMDI, and while it wanted me to compile the source code from the website myself, I also found it in the Synaptic Package Manager.
It doesn't have a GUI, but is very easy to use (just give it the original file and the new filename and it does the rest).

This seems to have fixed the problem with the video playing automatically! Now to see if FP 3 works...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.