m4a无法在Firefox swf路径上运行的Jplayer是正确的

时间:2014-10-07 20:29:16

标签: jquery firefox jplayer m4a

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");

1 个答案:

答案 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");
});

JSFIDDLE