时间3秒

This commit is contained in:
zhangsir
2024-05-27 17:11:28 +08:00
parent 565fb680fc
commit 3200aeb58e
2 changed files with 28 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
height="100%"
@waiting="onWaiting"
@playing="onPlaying"
@timeupdate="onAudioTimeUpdate"
>
<source :src="src" />
</video>
@@ -561,6 +562,10 @@ export default {
this.isPlaying = true;
this.videoDom.play();
},
onAudioTimeUpdate() {
const currentTime = this.$refs.video.currentTime;
this.$emit('onTimeUpdate', currentTime);
},
},
watch: {
currentVolume: function () {