Browse Source

Merge branch 'master' into master

Harvey Zack 6 years ago
parent
commit
29e4a93d73
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/js/player.js

+ 1 - 0
src/js/player.js

@@ -495,6 +495,7 @@ class DPlayer {
     }
     }
 
 
     switchQuality (index) {
     switchQuality (index) {
+        index = typeof index === 'string' ? parseInt(index) : index;
         if (this.qualityIndex === index || this.switchingQuality) {
         if (this.qualityIndex === index || this.switchingQuality) {
             return;
             return;
         }
         }