如题,soundmanager播放音频在iPhone上只能播放一次,第二次就没反应了。在安卓和PC上没问题。下面是代码,,请大家帮帮忙,看看如何解决这个问题。
$('#container').on('click','.soundLink',function(){
if(soundManager.canPlayMIME($(this).attr('type'))){
soundManager.createSound({url : $(this).attr('href') }).play();
}else{
alert('链接错误!');
}
return false;
});
<span class="button-wrap">
<a href="http://dict.youdao.com/dictvoice?audio=what this is" class="button button-circle soundLink" type="audio/mp3">Play</a>
</span>