ios执行innerAudioContext.play();无声音

发布于 6 年前作者 qzhao4084 次浏览最后编辑 6 年前来自 ask

const innerAudioContext = wx.createInnerAudioContext();

onShow:function(){

innerAudioContext.src = http://xxx/sound/sound.mp3;

innerAudioContext.obeyMuteSwitch = false

},

success(res) {

if (res.data > 0) {

// 声音播放

innerAudioContext.play();

}

}

3 回复
qliu
qliu1 楼6 年前

提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

nzhao
nzhao2 楼6 年前

解决了吗,我也遇到这个问题

yanli
yanli3 楼4 年前

同求这个问题   IOS上没有效果