Is there any way to control Youtube through the media keys on the keyboard?
Solution 1:
This extension worked for me:
Global hotkeys for your favourite music players.
Control players inside Chrome from anywhere on your computer.
Source Streamkeys
I am using it on Last.fm
Update: Google removed it from the store.
Update: Back in the google store.
More info and how to download: github.com/berrberr/streamkeys/issues/416
Here is a link to zipped extension: https://drive.google.com/file/d/1T4VdEpbUzZO_FNe7OCOEO1Ac8SEZceBn/view?usp=sharing
You can use load unpacked extension button on chrome://extensions page in developer mode to add.
Solution 2:
Chrome 73 does it out of box.
Some people may even want to disable it at chrome://flags/#hardware-media-key-handling
(source).