Nov. 04, 2009MonkY
Since Firefox got updated a lot of my users are complaining about the browser not beeing able to refresh the playlist. Even after F5, CTRL+R, JW Player still shows the old playlist.
Is there a way to fix this bug/compatibility problem ? Can we set the player so it force a refresh to the browser ?
Thx in advance !
Nov. 04, 2009hobbs
Append a random number to the playlist file.
var rndNum = Math.round(1000 * Math.random());
'file': encodeURIComponent('playlist.xml?' + rndNum),
—or—
so.addVariable('file', encodeURIComponent('playlist.xml?' + rndNum);
Nov. 11, 2009MonkY
Thanks hobbs ! Now it works !
P.S. See you have a small error in there (it's missing an ")" after rndNum) ).
Nov. 11, 2009hobbs
Yeah, I found the missing parenthesis on the floor — it must have slipped off the screen — I'll use a bit more glue next time.
Good Luck!
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.