html代码
<video controls id="myvideo" custom-cache="false" :src="videoUrl" @fullscreenchange="screenChange($event,item)" @timeupdate="videoTimeUpdateEvent($event)">
</video>
js代码
videoTimeUpdateEvent(e) { // 播放进度改变
console.log(e)
this.playTime=e.detail.currentTime
this.allTime=e.detail.duration
console.log('视频播放时长', this.playTime,'视频总时长', this.allTime)
}