add keyboard shortcut for updating video playback rate
This commit is contained in:
parent
b9d330ea2d
commit
ad7a323632
@ -347,6 +347,10 @@ export default class VideoPlayer {
|
||||
onMuteClick();
|
||||
} else if(e.code === 'Space') {
|
||||
this.togglePlay();
|
||||
} else if(e.altKey && e.code === 'Equal') {
|
||||
this.video.playbackRate += 0.25;
|
||||
} else if(e.altKey && e.code === 'Minus') {
|
||||
this.video.playbackRate -= 0.25;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user