You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Video only plays after clicking play twice.. Created Aug 9, 2010

This thread is solved

Views: 1916     Replies: 7     Last reply Aug 10, 2010  
You must login first before you can use this feature

gelder

Posts: 5

Registered:
Jul 28, 2010

Video only plays after clicking play twice..

Posted: Aug 9, 2010

Hi,

I'v got the basic flowplayer installed on my website, which is meant to autoplay. It loads, and the audio plays, but the video does not. I have to click the play button twice (effectively pausing then playing the video) before it will play the thing properly.

Any help or suggestions on this?

This is my code, not exactly very complex..


  <!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
  <a href="/images/gelderPromo.flv" style="display:block;width:520px;height:330px" id="player"></a> 
  <!-- this will install flowplayer inside previous A- tag. -->
  <script>
    flowplayer("player", "/includes/flash/flowplayer-3.2.2.swf");
  </script>

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» Video only plays after clicking play twice..

Posted: Aug 9, 2010

Reply to: Video only plays after clicking play twice.., from gelder
No, not very complex ;-) Does

http://flowplayer.org/demos/installation/index.htm

work as expected for you? If yes, perhaps a link to a minimal sample page might be a good idea because then there must be something different in your setup.

Buzz
Author of 'Wordpress Flowplayer', jQuery.saiweb http://saiweb.co.uk Problems, requests? Please log a ticket at: http://trac.saiweb.co.uk

Posts: 271

Registered:
Dec 17, 2008

» Video only plays after clicking play twice..

Posted: Aug 9, 2010

Reply to: Video only plays after clicking play twice.., from gelder
An example URL would be more helpful, so we can check you have all the correct files loaded into the page,

Check if the demos are working for you and let us know.

Cheers

Buzz

gelder

Posts: 5

Registered:
Jul 28, 2010

» » Video only plays after clicking play twice..

Posted: Aug 10, 2010

Reply to: » Video only plays after clicking play twice.., from DBusby
Seehttp://bit.ly/craGkT

The crazy thing is... when i replace the a tag and the script tag with the example -

<!-- player container--> 
<a 
	href="http://vod01.netdna.com/vod/demo.flowplayer/flowplayer-700.flv" 
	style="display:block;width:425px;height:300px;" 
	id="player"> 
</a> 
 
<!-- this script block will install Flowplayer inside previous A tag --> 
<script language="JavaScript"> 
	flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.2.swf");
</script>

It magically works! It just doesn't seem to work when i use my own..

In fact.. I've just tried the following:

<a href="http://vod01.netdna.com/vod/demo.flowplayer/flowplayer-700.flv" style="display:block;width:425px;height:300px;" id="player"> 
</a> 
<!-- this script block will install Flowplayer inside previous A tag --> 
<script language="JavaScript"> 
	flowplayer("player", "/includes/flash/flowplayer-3.2.2.swf");
</script>
and it still works... so it's just not liking the link to my video :S..

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » » Video only plays after clicking play twice..

Posted: Aug 10, 2010

Reply to: » » Video only plays after clicking play twice.., from gelder
The video encoding software you're using must be seriously broken - or you're doing strange things with it. Audio and video were not muxed properly/at all (the sound played, but no video). I remuxed it for you. You can download it from here.

I was to lazy to fix the aspect ratio, also broken. You might want to look for a different encoding software.

Marking as solved, as this is not a flowplayer issue.

gelder

Posts: 5

Registered:
Jul 28, 2010

» » » » Video only plays after clicking play twice..

Posted: Aug 10, 2010

Reply to: » » » Video only plays after clicking play twice.., from blacktrash
Thanks blacktrash. It wasn't the video that was the problem though.. I uploaded the video to a different web server, and link to it from the same page, and it worked fine! So it appears it's was something to do with my web server.

Turns out it was the MIME type. IIS had the .flv listed as 'flv-application/octet-stream' for some reason.

I've tried changing this to 'video/x-flv' and it now works! :-)

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » » » » Video only plays after clicking play twice..

Posted: Aug 10, 2010

Reply to: » » » » Video only plays after clicking play twice.., from gelder
I don't believe you ;-)

http://www.blacktrash.org/test/gelder.html

Orginal: no sound, the scrubber button immediately jumps to the end of the video ... all this goes away with sane remuxing. But if it works for you ...

As for the server: gzipping of swf should be disabled.

gelder

Posts: 5

Registered:
Jul 28, 2010

» » » » » » Video only plays after clicking play twice..

Posted: Aug 10, 2010

Reply to: » » » » » Video only plays after clicking play twice.., from blacktrash
Hhhmm your example is exactly how mine was working (or not working as the case was!).

Think it may have been a bit of both then. Either way, i'm sure the MIME type should really be set to 'video/x-flv'.

Thanks for the help blacktrash =). I've been trying to find a good media player for a long time. Think i've found it!