This commit is contained in:
Sam Potts 2018-10-24 23:00:54 +11:00
parent 88528ef979
commit 67b7262764

View File

@ -683,7 +683,6 @@ class Plyr {
set quality(input) {
const config = this.config.quality;
const options = this.options.quality;
const { duration, playing } = this;
if (!options.length) {
return;
@ -715,15 +714,7 @@ class Plyr {
// Save to storage
if (updateStorage) {
this.storage.set({ quality: quality });
}
// Seek to duration before changing quality
this.seek = duration;
// Continue
if (playing) {
this.play();
this.storage.set({ quality });
}
}