Yumin Xia пре 6 година
родитељ
комит
e9ee177ffb
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/js/player.js

+ 1 - 0
src/js/player.js

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