4

Is there any way to control the video playback on YouTube through the special keyboard hotkeys of my laptop (e.g. Fn + F10/F11/F12)?

In case it is relevant, I am using Chromium as my web browser to access and play YouTube videos.

orschiro
  • 12,987
  • 16
  • 82
  • 157
  • 1
    you could map the keys to the ones youtube uses. Those would e.g. be `k` for pausing or `SHIFT` + `N` for the next video in the playlist – lucidbrot Jun 24 '17 at 19:58
  • Can you give an example how to map those? – orschiro Jun 25 '17 at 10:49
  • On Windows, I would use AutoHotkey. It seems to me like the linux equivalent is called autokey, but I've never worked with it. But on second thought, I might have misunderstood your question. You probably cannot control the video playback while it's in the background with the way I suggested - the window would need to be in focus. And if it is, then what speaks agains using the preprogrammed shortcuts? – lucidbrot Jun 26 '17 at 06:41
  • 3
    If your intention was to control the video playback while your browser has focus but you're in a different tab (might also work outside of the browser but I don't suspect so) there are a few chrome extensions you could try. e.g. https://chrome.google.com/webstore/detail/streamkeys/ekpipjofdicppbepocohdlgenahaneen or https://chrome.google.com/webstore/detail/play-control-your-backgro/ggmbimncibjjccpgnfjacipbbnjadggg – lucidbrot Jun 26 '17 at 06:42
  • Take a look to [my answer here](https://webapps.stackexchange.com/a/139654/142171) I've finally found an official post [here](https://support.google.com/youtube/answer/7631406?hl=en) with **Youtube** shortcuts, which also seems to work on Youtube Music. – Dwhitz Mar 20 '20 at 11:22

3 Answers3

1

You can install the Chrome extension Streamkeys then configure the hotkeys in the options.

Only drawback: shortcut must contain Ctrl or Alt, and use a letter or a number ; for other keys, some keys are accepted and some not (it doesn't work with F1-F12).

I just did it under Ubuntu 18.04 with Chromium 73.
You may be surprised by a black screen if you press Ctrl+Alt+F12 (finish reading the sentence before trying), you can come back with Ctrl+Alt+F1 or F2

lolesque
  • 471
  • 4
  • 12
0

L to fast forward, J to back forward and K to stop/play.

Negrito
  • 764
  • 1
  • 11
  • 25
  • This only works with the Youtube browser tab in the foreground. It does not work when the browser is in the background and you work with another program. This is why there are the hotkeys on the keyboard. They (should) always work. – Peter Jan 07 '22 at 18:31
0

Take a look to my answer here

I've finally found an official post here with Youtube shortcuts, which also seems to work on Youtube Music.

Dwhitz
  • 101
  • 3