We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 779e45c + 06db3f7 commit aa20ebaCopy full SHA for aa20eba
src/js/plyr.js
@@ -683,6 +683,7 @@ class Plyr {
683
set quality(input) {
684
const config = this.config.quality;
685
const options = this.options.quality;
686
+ const { duration, playing } = this;
687
688
if (!options.length) {
689
return;
@@ -706,6 +707,14 @@ class Plyr {
706
707
708
// Set quality
709
this.media.quality = quality;
710
+
711
+ // Seek to duration before changing quality
712
+ this.seek = duration;
713
714
+ // Continue
715
+ if (playing) {
716
+ this.play();
717
+ }
718
}
719
720
/**
0 commit comments