From 0f08c7c13a62792fd4a6ae76b62e480bbdcc2c78 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 8 Feb 2020 21:48:51 +0000 Subject: [PATCH] Ignore quality change if it matches existing --- src/js/html5.js | 4 ++++ 1 file changed, 4 insertions(+) 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);