Jplayer Circle Player does not play mp3 file

I 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 anything else I should do? 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! } 
+7
source share
1 answer

The answer from @mgraph is basically "cracking the kernel." If you update circle.player.js, you will have to remember to reapply the modification. Everything defined in this file is by default. It would probably be better to change the calling code.

In the lap player demo file (currently demo-05.htm ), find the options block that currently looks like this:

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

and add your value for the supplied parameter, for example.

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

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

+12
source

All Articles