Javascript Can';我无法在移动设备上播放html5音频

Javascript Can';我无法在移动设备上播放html5音频,javascript,html,audio,mobile,Javascript,Html,Audio,Mobile,我有这个音频源 <aside class="audio"> <audio id="the-fight-audio"> <source src="audio/the-fight.ogg"> <source src="audio/the-fight.mp3"> </audio> </aside> 它可以在桌面上使用,但不能在手机上使用。要让它正常工作,我必须做些什么吗?您

我有这个音频源

 <aside class="audio">
     <audio id="the-fight-audio">
         <source src="audio/the-fight.ogg">
         <source src="audio/the-fight.mp3">
    </audio>
</aside>

它可以在桌面上使用,但不能在手机上使用。要让它正常工作,我必须做些什么吗?

您使用的是什么手机浏览器?向下滚动以查找不同浏览器的兼容媒体类型W3Schools建议也使用元素。此外,您是否在css中为移动设备指定了任何媒体规则?i、 我正在使用移动chrome,还尝试了safari,都是在ios7上。我还在audio元素中添加了嵌入代码,但它仍然不能播放音频。如果我删除了播放部分之前的暂停位,它似乎与此有关,但如果它在那里,则根本不能播放
// Play button action
    $('.song .play').click(function(){
        var song = $(this).data('song'),
        audio = $('audio#'+song+'-audio');
        $('audio').each(function(){
            this.pause(); // Stop playing
            this.currentTime = 0; // Reset time
        }); 

        audio[0].play();
    });