基础库3.4之后InnerAudioContext无法播放带中文路径的音乐 开发工具和ios不能播放,安卓可以,3.3.5基础库都可以播放
var innerAudioContext = wx.createInnerAudioContext()
innerAudioContext.autoplay = true
innerAudioContext.src = wx.env.USER_DATA_PATH + "中文音乐.mp3"
innerAudioContext.onPlay(() => {
console.log('开始播放')
})
innerAudioContext.onError((res) => {
console.log(res.errMsg)
console.log(res.errCode)
})
