فهرست منبع

Merge pull request #418 from Stumble/yumin/fix-first-time-switch

First time quality switch to default quality should not fired.
DIYgod 6 سال پیش
والد
کامیت
2af0b580af
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;
         }