diff --git a/src/js/player.js b/src/js/player.js index a0d8b54..26e74c1 100644 --- a/src/js/player.js +++ b/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; }