Browse Source

Merge pull request #43 from AlexWebArchitect/playbackrate

add keyboard shortcut for updating video playback rate
master
Eduard Kuzmenko 3 years ago committed by GitHub
parent
commit
a649ee9352
  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