ios执行innerAudioContext.play();无声音
const innerAudioContext = wx.createInnerAudioContext();
onShow:function(){
innerAudioContext.src = “http://xxx/sound/sound.mp3”;
innerAudioContext.obeyMuteSwitch = false
},
success(res) {
if (res.data > 0) {
// 声音播放
innerAudioContext.play();
}
}
