m4a无法在Firefox swf路径上运行的Jplayer是正确的。
var audio;
function loadAudio(audio){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: audio,
}).jPlayer("play");
},
swfPath: "js/,
supplied: "m4a",
solution: "flash,html"
});
}
loadAudio("music.m4a");
答案 0 :(得分:0)
$(document).ready(function() {
function loadAudio(audio){
$("#jquery_jplayer_1").jPlayer({
ready: function(event) {
$(this).jPlayer("setMedia", {
m4a: audio,
}).jPlayer("play");
},
swfPath: "http://jplayer.org/latest/js",
supplied: "m4a"
});
};
loadAudio("http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a");
});