Revert PR #1211
This commit is contained in:
parent
88528ef979
commit
67b7262764
@ -683,7 +683,6 @@ class Plyr {
|
|||||||
set quality(input) {
|
set quality(input) {
|
||||||
const config = this.config.quality;
|
const config = this.config.quality;
|
||||||
const options = this.options.quality;
|
const options = this.options.quality;
|
||||||
const { duration, playing } = this;
|
|
||||||
|
|
||||||
if (!options.length) {
|
if (!options.length) {
|
||||||
return;
|
return;
|
||||||
@ -715,15 +714,7 @@ class Plyr {
|
|||||||
|
|
||||||
// Save to storage
|
// Save to storage
|
||||||
if (updateStorage) {
|
if (updateStorage) {
|
||||||
this.storage.set({ quality: quality });
|
this.storage.set({ quality });
|
||||||
}
|
|
||||||
|
|
||||||
// Seek to duration before changing quality
|
|
||||||
this.seek = duration;
|
|
||||||
|
|
||||||
// Continue
|
|
||||||
if (playing) {
|
|
||||||
this.play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user