"maxPlayCount" does not work

Hi guys,

I want to use the playlist-feature of FlowPlayer to deliver an advertising clip right before the requested video clip.

So I generated the following code:


[script type="text/javascript" language="JavaScript"]
var fo = new SWFObject("FlowPlayer.swf", "FlowPlayer", "400", "322", "7", "#ffffff", true);
fo.addParam("AllowScriptAccess", "sameDomain");
fo.addParam("allowFullScreen", "true");
fo.addVariable("config", "{ loop:false, playList: [{ url:'ad_file.flv', controlEnabled:false, maxPlayCount:1 }, { url:'content_file.flv' } ] }");
fo.write("videobox");
[/script]

The advertisement shouldn't be able to be skipped, but it should be shown only one time. If the visitor repeats the video clip, no advertisement should be seen. So I set the Paramter "maxPlayCount" to "1". But every time I come to the end of the playlist and hit the play button the first file is played. (I can set loop to true or enable the controls, nothing changes.) The problem occurs in any browser.

Can anybody help?

maxPlayCount Hack

it is a ghetto hack but it works if you are just trying to keep a commercial from being played twice.

add an image with a duration of 1 at the front of the playlist because it only doesn't work on the first clip... i added the overlay just so the user gets some sort of clickable something to choose to replay the video

{ url: 'blankimage.jpg', controlEnabled: false, duration: 1}
{ url: 'commercial.flv', controlEnabled: false, maxPlayCount:1},
{ url: 'mainvideo.flv' },
{overlayId: 'play' }

New version

I just tried the 2.0 version of Flowplayer, but this does not fix my problem.

Nobody has any idea?

api's picture

There is a bug regarding

There is a bug regarding this. It's also reported in our bug tracker. Will be fixed in an upcoming version.