diff options
author | Sam Potts <sam@potts.es> | 2020-02-08 21:48:51 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-02-08 21:48:51 +0000 |
commit | 0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78 (patch) | |
tree | 255a09f17efac09c956691438af7f0e364cfdad9 /src | |
parent | 8b9521d5a5d34bf81c57e901286ac325da2c1fc0 (diff) | |
download | plyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.tar.lz plyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.tar.xz plyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.zip |
Ignore quality change if it matches existing
Diffstat (limited to 'src')
-rw-r--r-- | src/js/html5.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/html5.js b/src/js/html5.js index 1173bcbe..0f76f453 100644 --- a/src/js/html5.js +++ b/src/js/html5.js @@ -65,6 +65,10 @@ const html5 = { return source && Number(source.getAttribute('size')); }, set(input) { + if (player.quality === input) { + return; + } + // If we're using an an external handler... if (player.config.quality.forced && is.function(player.config.quality.onChange)) { player.config.quality.onChange(input); |