aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-08 21:48:51 +0000
committerSam Potts <sam@potts.es>2020-02-08 21:48:51 +0000
commit0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78 (patch)
tree255a09f17efac09c956691438af7f0e364cfdad9 /src/js/html5.js
parent8b9521d5a5d34bf81c57e901286ac325da2c1fc0 (diff)
downloadplyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.tar.lz
plyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.tar.xz
plyr-0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78.zip
Ignore quality change if it matches existing
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js4
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);