<view class="list-media">
<video wx:if="{{data.url}}" id="{{data.id}}" class="media-video" src="{{data.url}}" bind:touchstart="bindPlay1">
<cover-view wx:if="{{isPause}}" class="controls" bind:touchstart="bindPlay">
<cover-view class="play">
<cover-image class="img" src="{{data._indexpic}}"/>
</cover-view>
</cover-view>
</video>
</view>
js:
bindPlay1 (event) {
this.videoCtx = wx.createVideoContext(event.currentTarget.id, this)
console.log(this.videoCtx)
this.videoCtx.play()
}
打印如下
仍然无法播放