Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

repeat = true, does not work


Hello Jeroen,

I really like your flv player a lot and if our customer does too we are going to buy a license... :).

But I have one problem. The customer wants the movie to be repeated when it ends in some kind of endless loop. I thought that's, what the "repeat" parameter is for, but when setting that to true, the movie ends, the "rotating loading" sign is displayed and nothing happens.

It looks like the movie is stopped at the last second and needs to finish loading a part. The same happens on your setup-wizard if I choose repeat: true

Greetings from Germany
Balu

44 Community Answers

JW Player

User  
0 rated :

it does indeed seem as a bug has been introduced playing/repeating single files.

i have just tested the wizard and it functions correctly on my win xp IE7/FF2 flash9, using the repeat parameter, when using a playlist though!
so until the bug have been corrected, maybe use a playlist with just the single file...
(you can hide the playlist - so it will be the same to the user)

JW Player

User  
0 rated :

I've tried to switch to the playlist too, but that does not help. My Setup looks like this:

var so = new SWFObject('/mediaplayer.swf','mpl','520','330','8');
so.addParam("allowfullscreen","true");
so.addVariable("file","/playlist_DE.xml");
so.addVariable("frontcolor","0xffffff");
so.addVariable("lightcolor","0x2454ff");
so.addVariable("backcolor", "0x002454");
so.addVariable("autostart","true");
so.addVariable("repeat","true");
so.addVariable("displayheight","312");
so.write('player');

I've tried to set autostart to list with no luck either.

Balu
PS: XP, FF2, flash9

JW Player

User  
0 rated :

im sorry! when i tested first, i used the playlist from the download - that worked.

it seems that when the player encounters a second .flv file with the same name, (playlist or not) the repeat breaks - with .mp3 there is no problem...

*temporary solution* (until JeroenW fixes this really ugly bug!):
set bc.. so.addVariable("shuffle","false");

and have two .flv items in the playlist, but with different names and upload two versions of the video with different names.

that worked for me in both FF2 and IE7 flash9.

JW Player

User  
0 rated :

Thanks for your fast replies, andersen - but that workaround won't work here either. Weird.

I'll play around a little more to see if something is wrong with my .flvs perhaps or similar...

Balu

JW Player

User  
0 rated :

Hi,

I too look forward to the fix.

That's very clever, anderson. I was having the same issue:

so.addVariable("shuffle","true");

Seems to about do it.

Though there seems to be a bug with this when I do it in Firefox; when I click outside Firefox, the movie stops. This doesn't seem to happen in the mp3 player.

What a wonderful set of players, BTW.

Best,

Alyssa.

JW Player

User  
0 rated :

I am experiencing the same problem. A single flv file is not repeating. Has this been addressed at this point? You can see an example at www.livingwaterfellowship.net/events

The video ends and the loading icon plays.

JW Player

User  
0 rated :

Probably best to step back to a working version of the player until Jeroen returns from holiday.

JW Player

User  
0 rated :

Brilliant! That worked :)

Thank you. :d

I'll keep my eyes posted on this thread for the bug fix v.

Best wishes,

Alyssa.

JW Player

User  
0 rated :

Opps... I just found this bug report with google... I tried many times testing the repeat=true function before I got here... Even the wizard example on this site cannot auto repeat with Single FLV file...
http://www.jeroenwijering.com/extras/wizard.html

I am looking forward to the authors fix~ great job indeed~

JeroenW

JW Player Support Agent  
0 rated :

That’s an ugly bug indeed, and one I immediately fixed. If you re-download the 3.99 flvplayer / mediaplayer, the problem will be solved. Thanks for the report!

JW Player

User  
0 rated :

Thanks! Thanks! Thanks!

Great program :)

JW Player

User  
0 rated :

Hi,
I have the same problem but with version 3.99: I want a flv-movie playing all the time (endless loop). I tried it with a single file and a playlist, with repeat=true and repeat=false w/o shuffle - nothing is working. The movie stops always at the end.
Here is the code:
bc.. <div id="swf" class="swf">
<script type="text/javascript">
var so = new SWFObject('../player.swf','introplayer','320','240','6','#336699');
so.addParam("allowscriptaccess","always");
so.addVariable("file","videos/opening.flv");
so.addVariable("repeat","true");
so.addVariable("javascriptid","intromovie");
so.addVariable("displayheight","240");
so.addVariable("autostart","true");
so.addVariable("showicons","false");
so.addVariable("showvolume","false");
so.addVariable("backcolor","0x000000");
so.addVariable("frontcolor","0xffffff");
so.addVariable("lightcolor","0x0099CC");
so.write('swf');
</script>

JW Player

User  
0 rated :

Same problem with the JW MP3 Player 3.12. Playback stops at the end of the file, with or without repeat=true.

JW Player

User  
0 rated :

Hi,

I just found the same problem with Media Player 3.13.
FLV(and m4a) files won't repeat itself.
The load indicator keeps flashing at the end of the file with the repeat setting on.

Anyone having same trouble with this version?

JW Player

User  
0 rated :

Hey all,

I was just having the same problem. I even downloaded the newest version of the flv player (JW FLV PLAYER 3.13) and inside of the test file I added:
bc.. s1.addVariable("repeat","true");
s1.addVariable("shuffle","false");


and in IE 7 & FF 2.0.0.11 it will just blink and the buffer sign. it is locally on my pc that I tested this on and online it doesn't work either.

JW Player

User  
0 rated :

Has this been fixed?

JW Player

User  
0 rated :

If you keep the source at

http://www.jeroenwijering.com/embed/mediaplayer.swf

in the Wizard, Repeat works fine but as soon as try and source the media player in different location, repeat no longer works.

Here is repeat working using the default media player source location as above:

http://www.randywheeler.com/4KFX/JWPlayer/

Here is repeat not working using the same media player but now the source is in the same folder as my index.htm file:

http://www.randywheeler.com/4KFX/JWPlayer2/

Randy

JW Player

User  
0 rated :

the jw site is using v3.14, your site is using v3.13.

grab the v3.14 from your browser's cache and use it.

official release is coming in a few days?????

JW Player

User  
0 rated :

That was my first thought and I already tried that but it doesn't work, version # didn't matter. How do you find out what version # the media player is? I couldn't find any from right clicking properties.

JW Player

User  
0 rated :

Right-click on the player and it will show the version.

I coudn't get either of your pages to laod, so I can't even make a guess about what might be wrong.

Why use the embed code instead of the JavaScript, which is much better and easier to work with? Social networking sites are the only ones that need embed and I won't have anything to do with them for obvious reasons...

JW Player

User  
0 rated :

Right clicking on the player worked. Pages have loaded fine with all the computers that have tested it. Maybe try this one:

http://www.randywheeler.com/4KFX

I'm new to this, I edit videos for a living not code, and decided to use the Setup Wizard in the "embed code" mode first but I will try the "swfobject code" mode next.

By the way, I went and double checked everything and ends up that using the 3.14 does work and now repeats from using the 3.14 media player from my folder. I must have got the two players versions mixed up when uploading to my server.

Thanks for the help,

Randy

JW Player

User  
0 rated :

Yap.. it is true.. 3.14 works fine. He just hasn't release them yet :)

JW Player

User  
0 rated :

I tested the 3.14 and it works perfect for me. So when is it officially released?

JW Player

User  
0 rated :

Just look in your media folder if ther is a "thumbs.db" file created by your OS you've uploaded with your jpg's flv's...
I had the same problem but i solved it by removing this blocking file. I've lost a few hours before to find the answer.

hope this helps

JW Player

User  
0 rated :

Actually, the same problem seems to exist even with player version 4.0, when not using a playlist.
Once the file has finished playing, it won't play again until reloading the page. Clicking the play icon just brings the rotating 'loading' -animation, nothing else.
(Using a red5 stream).
Any ideas here?

JW Player

User  
0 rated :

Hello i have use your swf player . and it workds good. also repeat flash and autostart also works.
my email id - : vasimpadhiyar@yahoo.com

JW Player

User  
0 rated :

i have one proble. how i set the file list in file attribute ?
i don't familier with xml. so i don't want to create xml file.
if is it possible to play multiple file one by one in player ?
plz reply me ....

JW Player

User  
0 rated :

@Vasim,

You need to create a playlist to play multiple files.

Please see: *http://code.longtailvideo.com/trac/wiki/FlashFormats#Playlistformats* for the specifications and examples.

JW Player

User  
0 rated :

i have make code to generate playlist from database and its get all video from DB..
in your forum i read that to saperate file use && sign, so i concate it after filename... it also done..
the code below generate list like ::::
-------------------------------------------------------------------------------------------------
http://192.168.0.32/html2/admin/location_images/video.flv&&http://192.168.0.32/html2/admin/location_images/Neave.flv
-------------------------------------------------------------------------------------------------

for($i=0;$i<count($array);$i++)
{
if($i!=(count($array)-1))
$emp="&&";
else
$emp="";

$list = $list.$location_url.$array[$i].$emp;

}

echo $list;

JW Player

User  
0 rated :

now problem is that it play only first video not a rest of any...
can you tell me where should i change my code ???

i don't want to create xml file...

plz reply soon i need it ergently !!

thnk u..

JW Player

User  
0 rated :

@Vasim - *shuffle* is a *flashvar*, to continue playing set the flashvar *repeat=always *or *repeat=list*

<strike>s1.addParam("shuffle","false"); </strike>bc.. so.addParam('flashvars','&file=playlist.xml&playlist=bottom&repeat=always&shuffle=true');
please try the wizard and compare the code: - *http://www.jeroenwijering.com/?page=wizard*

to load a playlist directly from memory without .xml, please see the example: *Assemble playlists in memory *
(note uses player v.4.x - swfobject v.2.1)
http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_5-2-4-0.html
http://home5.inet.tele.dk/nyboe/flash

JW Player

User  
0 rated :

thnk u for reply

now the flash works fine with file playlist.

i want to hide play toolbar from bottom of player. how can i ?

JW Player

User  
0 rated :

set the flashvar *controlbar=none*

from the flashvars page: - *http://code.jeroenwijering.com/trac/wiki/FlashVars*bc.. *controlbar *(bottom): position of the controlbar. Can be set to bottom, over and *none*.

maybe also try the wizard: - *http://www.jeroenwijering.com/?page=wizard*

JW Player

User  
0 rated :

conrolbar hide succesfully but
half video display in player.

JW Player

User  
0 rated :

sorry for above stupid question..
i have solved above problem..
shownavigation=false

JW Player

User  
0 rated :

do any one know how to remove rightclick popup menu from flashplayer ?? reply now

JW Player

User  
0 rated :

How can i ensure that the playlist xml file always picks the most recently added file, as the first video, and not the other way round where, i have to re-sort manually to achieve this

JW Player

User  
0 rated :

@peter - please see the - *http://www.jeroenwijering.com/?item=Javascript_API_Examples*
for examples like - *http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_6-2-0-0.html*

please note that the above examples all use the swfobject v.2.1 - *http://code.google.com/p/swfobject/*

JW Player

User  
0 rated :

Using joomla, the xml -playlist cannot does not use the principal of first-in-first-out, i end up having the latest video below the playlist, and when i try using the re-order button, its not working? Is there a way, i can make the script automatically append the latest video the first list in the playlist!

JW Player

User  
0 rated :

@Antti,

See this thread: *http://www.jeroenwijering.com/?thread=12460*

After testing a lot of files from a lot of streams, I came to the conclusion that the problem is actually the file hanging, not the player or stream.

Most of the files that hang from an RTMP stream also hang with HTTP progressive downloading.

The only solution that I know of is to re-encode the file.

JW Player

User  
0 rated :

<script type="text/javascript">
var s1 = new SWFObject("mediaplayer.swf","ply","242","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam('wmode','opaque');
s1.addParam("shuffle","false");
s1.addParam("flashvars","file=<?=$list?>&repeat=list&autostart=true");
s1.write("container");
</script>

JW Player

User  
0 rated :

so.addVariable('repeat','always');

repeats the one file with no playlist

JW Player

User  
0 rated :

I would like to be able to have the movies in *just* one of my playlists repeat endlessly. Is there a way to request repeating in an xml file? I'm using JW Player 4.2.90.

A related question: assuming I can achieve the above, is there a way to do it so that the looping is seamless? I see some other code work arounds on the forum but am not sure how to apply them in this case.

The website in question is http://www.JohnEdmark.com (click on "Videos")

(BTW, Although repeat:"list" works fine in my CreatePlayer() function, repeat: "single" does not. Any idea why? This question is somewhat academic, since even if "single" worked it wouldn't solve my problem of wanting only one of my playlists to play each movie endlessly)

Finally, I can't seem to log into my account. Do accounts expire?

Ethan Feldman

JW Player Support Agent  
0 rated :

@John – If you want a playlist to always repeat, you just need to set the repeat flashvar to always. See here – http://developer.longtailvideo.com/trac/wiki/Player5FlashVars

Also, there are no accounts for the forum, to post. What account are you referring to?

This question has received the maximum number of answers.