mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 16:19:53 +05:30
Skip duration multiply by playback rate
Fast Forward/Backward like YouTube. The skip duration is multiplied by playback rate.
This commit is contained in:
parent
26ce0eb4b9
commit
3b484c362e
@ -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 New Issue
Block a user