Update vd
This commit is contained in:
parent
ff5db2df3d
commit
1621e5ac58
2
js/vd.js
2
js/vd.js
|
@ -196,6 +196,7 @@ class SpeedItem extends vjs.MenuItem {
|
||||||
|
|
||||||
handleClick() {
|
handleClick() {
|
||||||
this.player().playbackRate(this.speed);
|
this.player().playbackRate(this.speed);
|
||||||
|
this.menuButton.updateLabel(this.label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,6 +277,7 @@ function createSpeedButtons(player) {
|
||||||
for (let speed of speeds) {
|
for (let speed of speeds) {
|
||||||
menuButton.menu.addAndRecordItem(new SpeedItem(player, {
|
menuButton.menu.addAndRecordItem(new SpeedItem(player, {
|
||||||
label: "x" + speed,
|
label: "x" + speed,
|
||||||
|
menuButton,
|
||||||
speed,
|
speed,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue