mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
时间3秒
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user