小程序的 wx.createVideoContext 使用

在 video 设一个 id

<video id="myVideo" src=""></video>

然后在函数里面使用 createVideoContext 

 let videoContext = wx.createVideoContext('myVideo', this)
     videoContext.seek(that.data.video_real_time)

做这个文章 主要的目的就是 有时候  createVideoContext 里面的方法 不起作用,那是因为 createVideoContext 没有加 this

猜你喜欢

转载自blog.csdn.net/weixin_41854372/article/details/114132552