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.
1 parent a2a82a9 commit 06db3f7Copy full SHA for 06db3f7
src/js/plyr.js
@@ -680,8 +680,7 @@ class Plyr {
680
set quality(input) {
681
const config = this.config.quality;
682
const options = this.options.quality;
683
- const duration = this.duration;
684
- const isPlaying = this.playing;
+ const { duration, playing } = this;
685
686
if (!options.length) {
687
return;
@@ -706,11 +705,11 @@ class Plyr {
706
705
// Set quality
707
this.media.quality = quality;
708
709
- // seek to duration before changing quality
+ // Seek to duration before changing quality
710
this.seek = duration;
711
712
- // continue
713
- if (isPlaying) {
+ // Continue
+ if (playing) {
714
this.play();
715
}
716
0 commit comments