Mozilla is currently working on introducing Media Control support in Firefox 81 that is turned on by default. The feature allows Firefox users to manage playing media in the browser using media keys on keyboards, e.g. the media keys on a laptop or tablet computer Firefox is running on.
Google rolled out global media keys support in Chrome 79 recently. The feature enables Chrome users to control media in the Chrome browser using media keys on keyboards even if Chrome is not the active window, e.g. when it is minimized.
The Firefox preferences fdom.media.mediasession.enabled and media.hardwaremediakeys.enabled determine whether the functionality is enabled or disabled in the browser. While you can enable it in earlier versions of Firefox, the functionality may not work in these browsers.
A quick test in Firefox 79 confirmed that the feature is working fine if you set the two preferences to True on about:config. Once done, you may use media keys on the keyboard to control playback of video and audio in the browser.
Here is how that is done in detail:
This is all it takes to enable media keys support in recent versions of the Firefox web browser.
From Firefox 81, Media Controls should work out of the box. A test in Firefox Nightly confirmed this as I could use keys to pause or stop videos, or change the volume of the playing media file.
All it takes is to press one of the buttons of the keyboard to control the playing media. Firefox displays an overlay on the screen that users may interact with directly using the mouse or touch input. The direct interaction option may be useful if you want to make swift changes, e.g. change the volume significantly as it may be faster than having to hammer on the volume up or down button multiple times.
Media keys support is global in Firefox 81 which means that you may control the video or audio file that is playing in Firefox even if the window of the browser is not the active one on the system.
Media keys support is a handy feature for a browser to have, especially if the functionality works globally. It is still possible to interact with the controls on the video or audio site if that is preferred, but these controls give users another option when it comes to media playback on their devices.
Now You: Do you use media keys on your keyboards, if they are available? (via Techdows)Advertisement
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.