Video player: seeking with arrows

This commit is contained in:
morethanwords 2021-10-28 14:46:48 +03:00
parent 1462b7c32c
commit 180d151ac9

View File

@ -396,6 +396,9 @@ export default class VideoPlayer extends EventListenerBase<{
appMediaPlaybackController.playbackRate += .25;
} else if(e.altKey && e.code === 'Minus') {
appMediaPlaybackController.playbackRate -= .25;
} else if(this.wrapper.classList.contains('ckin__fullscreen') && (e.code === 'ArrowLeft' || e.code === 'ArrowRight')) {
if(e.code === 'ArrowLeft') appMediaPlaybackController.seekBackward({action: 'seekbackward'});
else appMediaPlaybackController.seekForward({action: 'seekforward'});
} else {
good = false;
}