why is jPlayer not playing my MP3 files in Firefox?

后端 未结 2 1636
旧巷少年郎
旧巷少年郎 2021-02-10 07:13

I am having trouble playing an MP3 file using jQuery Jplayer in Firefox 8. I have installed the latest flash for my browser and I can see that the jplayer.swf file is being down

2条回答
  •  青春惊慌失措
    2021-02-10 07:56

    i had the same problem i made a jplayer audio playlist and loaded mp3 files in it.

    it was working on chrome not on firefox

    i fixed that by adding solution :flash

        $(document).ready(function(){
    
        var myPlaylist = new jPlayerPlaylist({
        jPlayer: "#jquery_jplayer_1",
        cssSelectorAncestor: "#jp_container_1"
         }, [
        {
            title:"Cro Magnon Man",
            artist:"miaow",
            mp3:"http://www.jplayer.org/audio/mp3/TSP-01-Cro_magnon_man.mp3",
            oga:"http://www.jplayer.org/audio/ogg/TSP-01-Cro_magnon_man.ogg"
        }
    
        ], {
        playlistOptions: {
      enableRemoveControls: true
        },
          swfPath: "js",
        supplied: "mp3",
        wmode: "window",
        solution: "flash",
        });
    
        $("#jplayer_inspector_1").jPlayerInspector({jPlayer:$("#jquery_jplayer_1")});
    

提交回复
热议问题