Skip duration multiply by playback rate

Fast Forward/Backward like YouTube. The skip duration is multiplied by playback rate.
pull/1781/head
138138138 2021-02-17 21:33:26 +08:00 zatwierdzone przez GitHub
rodzic 26ce0eb4b9
commit 3b484c362e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -430,17 +430,17 @@ window.addEventListener('keydown', e => {
case 'ArrowRight':
case 'MediaFastForward':
action = skip_seconds.bind(this, 5);
action = skip_seconds.bind(this, 5 * player.playbackRate());
break;
case 'ArrowLeft':
case 'MediaTrackPrevious':
action = skip_seconds.bind(this, -5);
action = skip_seconds.bind(this, -5 * player.playbackRate());
break;
case 'l':
action = skip_seconds.bind(this, 10);
action = skip_seconds.bind(this, 10 * player.playbackRate());
break;
case 'j':
action = skip_seconds.bind(this, -10);
action = skip_seconds.bind(this, -10 * player.playbackRate());
break;
case '0':