mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Merge pull request #1781 from 138138138/player-speed-adjustment
Skip duration multiply by playback rate
This commit is contained in:
commit
93200c00f2
1 changed files with 4 additions and 4 deletions
|
@ -430,17 +430,17 @@ window.addEventListener('keydown', e => {
|
||||||
|
|
||||||
case 'ArrowRight':
|
case 'ArrowRight':
|
||||||
case 'MediaFastForward':
|
case 'MediaFastForward':
|
||||||
action = skip_seconds.bind(this, 5);
|
action = skip_seconds.bind(this, 5 * player.playbackRate());
|
||||||
break;
|
break;
|
||||||
case 'ArrowLeft':
|
case 'ArrowLeft':
|
||||||
case 'MediaTrackPrevious':
|
case 'MediaTrackPrevious':
|
||||||
action = skip_seconds.bind(this, -5);
|
action = skip_seconds.bind(this, -5 * player.playbackRate());
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
action = skip_seconds.bind(this, 10);
|
action = skip_seconds.bind(this, 10 * player.playbackRate());
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
action = skip_seconds.bind(this, -10);
|
action = skip_seconds.bind(this, -10 * player.playbackRate());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '0':
|
case '0':
|
||||||
|
|
Loading…
Reference in a new issue