Reputation: 5748
i m trying to play a file using jplayer
the site i have experimented is:-
the background music is played on chrome
but not in firefox
how can i play on firefox
thanks
Upvotes: 2
Views: 2770
Reputation: 111268
It probably doesn't work in Firefox because of the lack of native MP3 support. Adding an Ogg Vorbis version of your music (which you seem to have commented out in your source code) should solve the problem.
See this demo and look at the source. It works in Firefox:
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
}).jPlayer("play");
},
ended: function (event) {
$(this).jPlayer("play");
},
swfPath: "../js",
supplied: "m4a, oga"
});
By the way, who is this classy band-cum-DJ whose experienced hands would make my party different and wonderfully memorable?
Upvotes: 4