diff options
| author | 138138138 <78271024+138138138@users.noreply.github.com> | 2021-02-17 21:33:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-17 21:33:26 +0800 |
| commit | 3b484c362e607e4f17e0bb68051e7f6bf2140e3a (patch) | |
| tree | bd2d73628c0a4fce745e45f3c16f7965b2804c19 /assets | |
| parent | 26ce0eb4b9b71bd824a1179889d37f757f9f3e4e (diff) | |
| download | invidious-3b484c362e607e4f17e0bb68051e7f6bf2140e3a.tar.gz invidious-3b484c362e607e4f17e0bb68051e7f6bf2140e3a.tar.bz2 invidious-3b484c362e607e4f17e0bb68051e7f6bf2140e3a.zip | |
Skip duration multiply by playback rate
Fast Forward/Backward like YouTube. The skip duration is multiplied by playback rate.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/player.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 04326631..7490bd75 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -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': |
