Share media key control between Chrome and system media.

Latest Version

Version
1.2.0
Update
June 4, 2020
Size
30.43KiB
Developer
Category
Users
176
Rating
3.8 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions

See more

Media Key Sharer Extension

About:
This extension allows you to use your keyboard's media keys to control both media playing on Chrome (YouTube videos etc.) as well as system controlled media (such as Spotify) from any application on your computer. It also allows for extra video control via media keys that would' be otherwise impossible.

Features:
-Use media keys to control both Chrome and system media.
-Use media keys to skip and close ads on YouTube.
-Use media keys to play next and previous videos on YouTube videos.
-Use media keys to toggle fullscreen video.
-Use media keys to swap videos and tabs.
-Use media keys to fast forward video.

Usage:
-To play/pause Chrome media - Tap the \"Play/Pause\" key once.
-To interact with system media - Double tap the \"Stop\" key.
-To skip ads or select the next video - Tap the \"Next\" key once.
-To select the previous video - Tap the \"Previous\" key once.
-To increase playback speed - Double tap the \"Next\" key.
-To decrease playback speed - Double tap the \"Previous\" key.
-To toggle fullscreen video - Double tap the \"Play/Pause\" key.
-To switch the currently playing video/tab - Double tap the \"Stop\" key.

After single tapping, you should wait 1 second before tapping again.

Double tabs should happen within 1 second. The extension icon should become green for 4 seconds, in this time use any media key you wish. The extension icon will then become orange for the next ~7 seconds (you cannot control system media again in this time). The extension icon will become white when ready to use again.





Notes:
-This extension works by using unintended functionality of the MediaSession API as well as trying to work with completely non-conformed video standards, so unsurprisingly it can be unpredictable.

-Media keys functionality was added with Chrome 73, you must be on this version or higher for the extension to work.

-Media key functionality was also changed lots at the start of its integration, so even on Chrome 73 (and the next few versions) the extension may be even more unpredictable.

-If media key events still don't work, check that both chrome://flags/#hardware-media-key-handling and chrome://flags/#hardware-media-key-handling are set to \"enabled\".
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "__MSG_extName__", "description": "__MSG_extDescription__", "author": "Alec Coates", "version": "1.2.0", "default_locale": "en", "minimum_chrome_version": "26", "icons": { "16": "icons/white16.png", "32": "icons/white32.png", "48": "icons/white48.png", "128": "icons/white128.png" }, "permissions": [""], "browser_action": {}, "background": { "scripts": ["background.js"], "persistent": true }, "content_scripts": [ { "matches": [""], "all_frames": true, "js": ["content.js"] } ], "incognito": "spanning"}
Read more