Browse Source

三秒后在拖动

y595705120 1 year ago
parent
commit
5384ab9a73
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/containers/center/play/components/media.vue

+ 6 - 2
src/containers/center/play/components/media.vue

@@ -165,8 +165,12 @@
       playerReadied(audio) {
         console.log("playerReadied", audio)
         let that = this;
-        if (this.media.position) {
-          this.setposition(this.media.position);
+        // if (this.media.position) {
+          // this.setposition(this.media.position);
+        if (this.media.position > 5 && this.media.position < this.media.duration) {
+          setTimeout(() => {
+            this.setposition(this.media.position)
+          }, 2000)
         }
         this.isReady = true
         setTimeout(()=> this.setMarks(), 600);