Setup with a splash

Dark air skin in a basic setup (FlowPlayerDark.swf).

The first clip in the playlist is a still image and it uses the built-in big play button overlay on top of it. The same play button is used after the video is complete. But here the play button overlay is shown on top of the last video frame. All this is accomplished with three clips in the playlist:

  • Still image configured with the FlowPlayer built-in play button overlay.
  • The actual FLV video file.
  • Built-in FlowPlayer play-button overlay shown on top of the last video frame.

This one uses the new native full screen feature.

Basic demo

Hre is the complete HTML source used to achieve this. The call to fo.addVariable("config", ...) sets the FlowPlayer settings. Other code here is for Flash embedding using SWFObject.

<script type="text/javascript" src="/video/swfobject.js"></script>
<div id="fp1" class="flowplayer">Basic demo</div>
<script type="text/javascript"> defer="defer" 
  // <![CDATA[
  var fo = new SWFObject("/video/FlowPlayerDark.swf", "FlowPlayer", "300", "250", 
       "9", "#ffffff", true);
  fo.addParam("AllowScriptAccess", "always");
  fo.addParam("allowFullScreen", "true");
  fo.addVariable("config", "{ 
       playList: [ 
          { url: 'http://blip.tv/uploadedFiles/Zeitgeiber-FirstInLineForIPhoneGuyDay3531-469.jpg',
 overlayId: 'play' }, 
          { url: 'http://blip.tv/file/get/Zeitgeiber-FirstInLineForIPhoneGuyDay3531.flv?source=1' }, 
          { overlayId: 'play' } ], 
       showStopButton: true, autoPlay: false, autoRewind: false, autoBuffering: false, initialScale: 'scale' }");
  fo.write("fp1");
// ]]>
</script>

As you can see there are a few variables that are used here to change the default behavior: showPlayListButtons, loop, initialScale, autoBuffering, useNativeFullScreen. These are all optional and you can specify them if you don't want to go with the defaults. These variables are all explained in more detail in the documentation.

Comments

IE7 problem still

I just downloaded the new version 1.21.1-b2 and we are still experiencing the same problems with the page freezing at the video content after refreshing the page, and the back button goes to a white screen.

Ok, I figured out what the

Ok, I figured out what the problem was. Seems like there is a bug still.

I have showFullScreenButton: false, yet it still loads fullscreen.js from flowplayer.org. So setting useNativeFullScreen: true, makes it not load fullscreen.js.

Also, when I have useNativeFullScreen: false, it will not allow IE7 to refresh.

my mistake, i didn't notice

my mistake, i didn't notice that the directory structure had been change with this version.

1.21.1 Seems to have the same problems

I am using 1.21.1 and it has the same problems that other have reported when reloading in IE.

This page uses 1.2.1 and at

This page uses 1.2.1 and at least for me in IE7 page reloading works.

Will fix this

I will fix this IE-reloading issue during next week. There will be a fix release 1.21.1 that addresses this. Thanks for your patience... // Anssi

Partial fix for IE reload

This issue is related to how and when IE executes JavaScript. After investigating this it seems that there are some workarounds.

In this page I have now used the defer attribute in the SWFObject's script tag and after that this page loads after a refresh. The only problem is the disappearing Google ads in the right margin. But otherwise the page loads fine at least in IE7.

Other option would be to place the SWFObject code in the head section of the page and write the player using swfobject in body.onload or window.onload. I did not have a chance to test this out yet.

Back Button

Hi.

I tried this fix and the player does now work in IE (6 at least) but the back button problem as reported by somebody else still exists - blank page and have to hit back again.

Cheers.

Edit: Actually, back button completely fubar in IE. It's a shame as I have to use an older version of flowplayer AND an MP3 player to deliver my content instead of just Flowplayer for everything. :-/

fixed

I've located and fixed the problem now. Both the back button and page reloading should work fine in IE now (tested with IE7). This was because the player unnecessarily rearranged and resized itself twice when the page was reloaded. I guess this extra processing was too much for IE.

This page now uses the current development version. You might need to clean the browser cache to see the fix.

Anssi

Annoying!

Same problem here with IE. My films are hosted at archive.org and using their (older) version of Flowplayer my pages work fine in IE and Firefox. Just the newer version that has this issue with IE. I would like to use the newer one for Google Analytics but until this issue is sorted it's impossible. :-/

Same problem..

I am having the same problem with IE.

Also I will add, if you hit the back button nothing happens. You have to hit it twice to go back. I have tested this on 4 boxes with the same result. Is anyone else having that problem?

I haven't found a fix yet but I'm still trying

shivermetimbers

Problem in IE when refreshing this page

i'm using IE7 and if i refresh this page .. the page loads till the player loads but nothing after it .. so the content underneath the player and the right column are not loading.

The same thing is happening on the page that i'm working on.

In Firefox everything works fine and I haven't tested it on IE6 yet.

Must notice that this happens only if the player is embeded through SWFObject like the one on this page:
http://flowplayer.org/demo/basic+setup

Anybody have any suggestions on how to get this thing fixed?

Thanks,
Radu.

This is my problem also

I am using javascript document.write to generate the code needed to render FlowPlayer. I have used the SWFObject code and also wrote my own in hopes it was related to SWFObject. Everything works fine on most browsers but when I hit the refresh button on IE7 the page hangs. I thought there was a problem with IE caching but I still see the problem after adding the code to "break" cache. I have also removed my cache between refreshes with the same results. This only seems to be the problem when I use Javascript to generate the code, (if php generates it no problems occur). I am not sure if this is a browser issue or possibly a problem with the player itself. I am still investigating whether or not this is something that can be worked around doing a messy hack. If anyone else has found a way to get this working I would be very interested in reading what you did.