1
0
Эх сурвалжийг харах

first time qualist switch

Yumin Xia 6 жил өмнө
parent
commit
e9ee177ffb

+ 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;
         }
         }