823

parent bd5cd8a1
......@@ -432,16 +432,11 @@ export default {
console.log('canplay')
var video = document.getElementById("myVideo");
if (this.currentTime) {
// setTimeout(() => {
// this.$refs.videoDom.play();
// this.$refs.videoDom.currentTime = this.currentTime;
// this.currentTime = 0;
// }, 300);
this.$refs.videoDom.play();
this.$refs.videoDom.pause();
this.$refs.videoDom.currentTime = this.currentTime;
this.$refs.videoDom.play();
this.currentTime = 0;
setTimeout(() => {
this.$refs.videoDom.play();
this.$refs.videoDom.currentTime = this.currentTime;
this.currentTime = 0;
}, 300);
// video.addEventListener("canplaythrough", ()=> {
// // console.log(video)
// this.$refs.videoDom.play();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment