Update vd

This commit is contained in:
Thomas Forgione 2020-11-05 17:32:58 +01:00
parent ff5db2df3d
commit 1621e5ac58
1 changed files with 2 additions and 0 deletions

View File

@ -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,
}));
}