Using the JWplayer - Load an xml file with a random cache number?

Posted on 2011-10-17
Last Modified: 2012-05-12
Hi Guys,
This is for people with experience using the JWplayer.

I am having trouble with the jwplayer saving the xml playlist into the cache, so in another flash project I am fixing this by loading the xml file like this in actionscript

How could I use similar coding in html for the jwplayer. So that it adds the nocache query.

I have heard that a no-cache header could be an option, Can you explain how to add that for me, I figure it is javascript but I am wrong quite a bit. haha.
I really appreciate the help.

Question by:CREATiVENESS
    LVL 29

    Accepted Solution

    You can build URL using JavaScript timestamp

    Check my example bellow, "Arnoldi.mp4" file will NEVER cached

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <title>Streaming Trial</title>
    <script type="text/javascript" src=""></script>

    <div id='container'>The player will be placed here</div>

    <script type="text/javascript">
    var so = new SWFObject('','jwplayer','480','270','9.0.115');
    so.addParam('flashvars','file=Arnoldi.mp4?' + new Date().getTime() + '&streamer=rtmp://');

    Author Comment

    Perfect. Thanks DG.

    Author Closing Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user how to how to record live broadcast.
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now