Browse Source

add keyboard shortcut for updating video playback rate

master
AlexWebArchitect 3 years ago
parent
commit
ad7a323632
  1. 4
      src/lib/mediaPlayer.ts

4
src/lib/mediaPlayer.ts

@ -347,6 +347,10 @@ export default class VideoPlayer { @@ -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…
Cancel
Save