组件库:2.18.0
组件:video
当video标签的poster已经有封面时,就无法把封面去除,除非下一个也有封面
wxml:
<video id="myVideo" class="video-play" src="{{video.url}}" poster="{{video.poster}}"
binderror="videoErrorCallback" show-play-btn="true" controls show-center-play-btn="true"></video>
js:
tabCourse(e) {
this.setData({
video: {
url: e.currentTarget.dataset.url,
poster: e.currentTarget.dataset.poster
}
})
}