Selaa lähdekoodia

first time qualist switch

Yumin Xia 6 vuotta sitten
vanhempi
commit
e9ee177ffb
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;
         }