<video id='limi-video'
src='http://1254346994.vod2.myqcloud.com/78ac99eevodgzp1254346994/fef56f777447398156866741048/slstHXelLEgA.mp4'
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')
}
})
按照教程提供下代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
报错信息是什么。刚测试了LG的,是正常运行的,没报错信息
联想和OPPO都报undefined 要把调试模式打开