823

parent bd5cd8a1
...@@ -432,16 +432,11 @@ export default { ...@@ -432,16 +432,11 @@ export default {
console.log('canplay') console.log('canplay')
var video = document.getElementById("myVideo"); var video = document.getElementById("myVideo");
if (this.currentTime) { if (this.currentTime) {
// setTimeout(() => { setTimeout(() => {
// this.$refs.videoDom.play(); this.$refs.videoDom.play();
// this.$refs.videoDom.currentTime = this.currentTime; this.$refs.videoDom.currentTime = this.currentTime;
// this.currentTime = 0; this.currentTime = 0;
// }, 300); }, 300);
this.$refs.videoDom.play();
this.$refs.videoDom.pause();
this.$refs.videoDom.currentTime = this.currentTime;
this.$refs.videoDom.play();
this.currentTime = 0;
// video.addEventListener("canplaythrough", ()=> { // video.addEventListener("canplaythrough", ()=> {
// // console.log(video) // // console.log(video)
// this.$refs.videoDom.play(); // 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