Go
Not registered? Sign up!

Firefox can't refresh player in latest version ?

Google Translate
4 posts | return to the Bug Reports forum | get the rss feed for this thread

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!

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? 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.