uni.createvideocontext 创建的标签在ios真机上调用 play 函数无反应 ?
uniapp 开发的小程序 代码片段 https://developers.weixin.qq.com/s/PG4DNKm67CQZ
播放
created() {
this.innerAudioContext = uni.createVideoContext("videoPlayer", this);
},
mounted() {
this.innerAudioContext.src = 'https://xxxxxxxxxxx.mp3'
},
methods: {
audioPlay() {
this.innerAudioContext.play() // ios真机无反应,别的都可以
this.isPlaying = true
}
}