diff --git a/js/vd.js b/js/vd.js index e6acf5a..250e0ef 100644 --- a/js/vd.js +++ b/js/vd.js @@ -196,6 +196,7 @@ class SpeedItem extends vjs.MenuItem { handleClick() { this.player().playbackRate(this.speed); + this.menuButton.updateLabel(this.label); } } @@ -276,6 +277,7 @@ function createSpeedButtons(player) { for (let speed of speeds) { menuButton.menu.addAndRecordItem(new SpeedItem(player, { label: "x" + speed, + menuButton, speed, })); }