安卓播放没事 ios 播放失败 这是为啥?
const backgroundAudioManager = wx.getBackgroundAudioManager();
play(){
var that=this;
if (backgroundAudioManager.paused == false){
backgroundAudioManager.pause()//暂停播放
that.setData({//改变按钮状态
palyState:false
})
} else if (wx.getStorageSync('disciplineA')){
backgroundAudioManager.src = that.data.indexSrc;
that.setData({
palyState: true
})
}else{
backgroundAudioManager.play()//开始播放
that.setData({//改变按钮状态
palyState:true,
})
}
},
我设置了title但在iOS系统还是无法播放