Oct. 24, 2008Andrew Winter
On one of my company's sites we use Flash Player 3.16 to rotate through a gallery of videos and images. We're hoping to upgrade to version 4.2 so that we can take advantage of a few plugins we'd like to write. Usually the gallery starts with a video (but not in all cases) and is followed by a series of images. The playlist we use is currently an XML list.
With Flash Player 3.16 we were able to supply the playlist, and the player would rotate through all of the items images and videos. Playing the videos completely and showing each image for a few seconds before moving to the next track in the list.
When we use 4.2 the player with our test XML file the player will run the first video completely but from there will stop with out playing the next track. If I manually click next the image will appear but will not rotate to the next image.
Any ideas?
Here is a demo of my XML file and my Script tag.
<playlist version="1">
−
<trackList>
−
<track>
<title>halloween party</title>
−
<image>
http://mysite.com/get_file.php?file_id=f6d742e79421a3a8&thumb=2&type=.jpg
</image>
−
<location>
http://mysite.com/get_file.php?file_id=f6d742e79421a3a8&type=.flv
</location>
<info/>
</track>
−
<track>
<title>img_5412</title>
<image>http://mysite.com/e274f325a1acbb0a.jpg</image>
<location>http://mysite.com/e274f325a1acbb0a.jpg</location>
<info/>
</track>
−
<track>
<title>img_5420</title>
<image>http://mysite.com/b4056cc7422125dd.jpg</image>
<location>http://mysite.com/b4056cc7422125dd.jpg</location>
<info/>
</track>
−
<track>
<title>img_5422</title>
<image>http://mysite.com/1b8f8f2f1a72bd2e.jpg</image>
<location>http://mysite.com/1b8f8f2f1a72bd2e.jpg</location>
<info/>
</track>
−
<track>
<title>img_5406</title>
<image>http://mysite.com/6225eccc1d2344a0.jpg</image>
<location>http://mysite.com/6225eccc1d2344a0.jpg</location>
<info/>
</track>
−
<track>
<title>img_5407</title>
<image>http://mysite.com/8e05ab85a71c8883.jpg</image>
<location>http://mysite.com/8e05ab85a71c8883.jpg</location>
<info/>
</track>
−
<track>
<title>img_5358</title>
<image>http://mysite.com/3b5eadeec1bcc674.jpg</image>
<location>http://mysite.com/3b5eadeec1bcc674.jpg</location>
<info/>
</track>
−
<track>
<title>img_5315</title>
<image>http://mysite.com/db4de5564441f293.jpg</image>
<location>http://mysite.com/db4de5564441f293.jpg</location>
<info/>
</track>
−
<track>
<title>img_5307</title>
<image>http://mysite.com/cba28055d83629de.jpg</image>
<location>http://mysite.com/cba28055d83629de.jpg</location>
<info/>
</track>
−
<track>
<title>jayhaze-wht1 (1)</title>
<image>http://mysite.com/6032da409a07a742.jpg</image>
<location>http://mysite.com/6032da409a07a742.jpg</location>
<info/>
</track>
−
<track>
<title>redboxsmall</title>
<image>http://mysite.com/21af1e78957f3280.jpg</image>
<location>http://mysite.com/21af1e78957f3280.jpg</location>
<info/>
</track>
−
<track>
<title>Image 1</title>
<location>http://mysite.com/095561348d5a51c6.jpg</location>
</track>
−
<track>
<title>Image 2</title>
<location>http://mysite.com/6c1d7523b3e5ea4c.jpg</location>
</track>
−
<track>
<title>Image 3</title>
<location>http://mysite.com/fa8940cb119b89d5.jpg</location>
</track>
</trackList>
</playlist>
Script tag
<script type="text/javascript">
<!-- //<![CDATA[
var player = new SWFObject("/swf/player.swf", "greyPlayer", "252", "215", "9", "#000000");
player.addVariable("file","/xml/event_playlist.xml?id=30384&default_image=095561348d5a51c6&tmx=1224844388");
player.addVariable("backcolor","707070");
player.addVariable("frontcolor","EEEEEE");
player.addVariable("lightcolor","FFFFFF");
player.addVariable("screencolor","707070");
player.addVariable("logo","/media_logo.png");
player.addVariable("bufferlength","10");
player.addVariable("volume","50");
player.addVariable('repeat','none');
player.addVariable("autostart","true");
player.addVariable('rotatetime','5');
if(Browser.Engine.gecko && Browser.Platform.mac) {
player.addParam("bgcolor", "#000000");
}else{
player.addParam("wmode", "opaque");
}
player.addParam("allowScriptAccess","always");
player.addParam("allowfullscreen","true");
player.write("player");
//]]> //-->
</script>
Oct. 24, 2008andersen
player.addVariable('repeat','always');
from - http://code.jeroenwijering.com/trac/wiki/FlashVars
repeat (none): set to list to play the entire playlist once and to always to continously play the song/video/playlist. There's no option to repeat a single entry in a playlist yet.
Oct. 28, 2008No go
Thanks for the ideas, still a no go. What I want is repeat (none) as the playlist should only play through once. The problem is that the playlist doesn't even play through once. It finishes video one, sometimes moves on to the second video/image then fails to move to image/video 3,4,5... etc. It could be an XML error but I'd be surprised by that as 3.16 works correctly with the same XML file. Any other ideas?
Oct. 28, 2008kLink
I think you should read what andersen posted. You want repeat=list to play the entire playlist once.
Oct. 28, 2008No go
Even with repeat=list the error in my last post occurs. ie. It finishes video one, sometimes moves on to the second video/image then fails to move to image/video 3,4,5... etc.
For ease here's a link to the page I'm currently testing. http://iflyer.staging.pre5ents.com/event/30384/
Oct. 29, 2008kLink
I don't know which hat you pulled rotatetime out of, but it's no rabbit.
I can't find rotatetime anywhere in the documentation for the v4.x player supported flashvars here:
http://code.jeroenwijering.com/trac/wiki/FlashVars
What is available, and must be put in each track of your playlist is the duration flashvar:You can vary the duration for each track individually.
<track>
<title>img_5412</title>
<image>http://imgserv.net/e274f325a1acbb0a.jpg</image>
<location>http://imgserv.net/e274f325a1acbb0a.jpg</location>
<duration>5</duration>
<info />
</track>
Oct. 29, 2008awinter
kLink thanks for the information that defiantly fixed it.
rotatetime was something I pulled out of the forum, don't remember where :/
Thanks again!
Sep. 04, 2009nmbnmbnm
nmnmbnm
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.