wx.createVideoContext(id).play()方法安卓手机报错
<video id=‘limi-video’
autoplay=’{{false}}’>
</video>
<button catchtap=‘setTime’>设置时间</button>
// pages/video/video.js
let videoCtx
Page({
/**
* 页面的初始数据
*/
data: {
initialTime:0,
autoplay:false
},
watchPlayProgress(e){
console.log(e)
},
setTime(){
videoCtx.play()
},
onLoad: function (options) {
videoCtx = wx.createVideoContext(‘limi-video’)
}
})