当setTime = 0时会出现此异常,setTime = 400毫秒就不汇报异常,加了延迟正常播放,官方怎么看这个video组件播放问题,
网上的说法:
执行了play()方法以后立即执行了pause()方法,所以你让video暂停150毫秒之后 再播放,就不会报错了,
setTimeout(() => {
that.isClickType = false
uni.createVideoContext(that.dataList[k].videoId + k, this).play()
setTimeout(() => {
that.dataList[k].isplay = false
that.dataList[k].coverImg = false
that.isInitializeImg = false
uni.hideLoading();
}, 100)
}, setTime)