Jplayer Circle Player not playing mp3 file

Lars picture Lars · Sep 26, 2011 · Viewed 7.4k times · Source

I've just downloaded the jplayer circle player and it works great. However when I change the link to my own mp3 file it stops working. Is there something else I should be doing? Thanks

var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
        {
            /*These work fine when not commented out
            m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
            oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg",*/
            mp3: "myfolder/mytrack.mp3", //This doesn't work!
        }

Answer

Su' picture Su' · Feb 10, 2012

The response from @mgraph is basically "hacking core." If you update circle.player.js, you'll have to remember to re-apply the modification. All that's defined in that file is defaults. It would probably be better to modify the invocation code.

In the circle player demo file(currently demo-05.htm), find the options block, which currently looks like:

    cssSelectorAncestor: "#cp_container_1",
    swfPath: "js",
    wmode: "window"

and add your own value for the supplied parameter, eg.

    supplied: "mp3",
    cssSelectorAncestor: "#cp_container_1",
    swfPath: "js",
    wmode: "window"

...which will then override the value set in circle.player.js