Google Chrome now has built-in support for media keys. Unfortunately, Chrome will take over your media keys and prevent them from controlling apps like Spotify when you’re watching YouTube, for example. Here’s how to make Chrome ignore your media keys.
Google Chrome现在已内置了对媒体密钥的支持。 不幸的是,例如,Chrome在您观看YouTube时会接管您的媒体密钥,并阻止它们控制Spotify等应用。 以下是使Chrome忽略您的媒体密钥的方法。
This same tip also applies to the new Chromium-based Microsoft Edge browser. In both browsers, however, this option requires an experimental flag that may be removed in the future. We tested it in the latest version of Chrome—Chrome 75—on June 24, 2019.
此相同技巧也适用于新的基于Chromium的Microsoft Edge浏览器。 但是,在两种浏览器中,此选项都需要一个实验性标记,以后可能会删除它。 我们已于2019年6月24日在最新版本的Chrome浏览器Chrome 75中对其进行了测试。
You’ll find this option on the chrome://flags
page. Copy the following address, paste it into Chrome’s Omnibox, also known as the address bar, and press Enter:
您可以在chrome://flags
页面上找到此选项。 复制以下地址,将其粘贴到Chrome的多功能框(也称为地址栏)中,然后按Enter:
chrome://flags/#hardware-media-key-handling
(In Microsoft Edge, go to edge://flags/#hardware-media-key-handling
instead.)
(在Microsoft Edge中,改为转到edge://flags/#hardware-media-key-handling
。)
Click the “Default” box to the right of the Hardware Media Key Handling setting and select “Disabled.”
单击“硬件媒体密钥处理”设置右侧的“默认”框,然后选择“禁用”。
You’ll have to restart Chrome (or Edge) before this change takes effect. Click the “Relaunch Now” button that appears to restart your browser.
您必须重新启动Chrome(或Edge),此更改才能生效。 单击出现的“立即重新启动”按钮以重新启动浏览器。
Chrome (or Edge) will reopen any tabs you had open, but you might lose any saved work on any open web pages, so be sure you’re ready to restart your browser before continuing.
Chrome(或Edge)将重新打开您打开过的所有标签,但是您可能会丢失所有打开的网页上已保存的工作,因此请确保在重新开始之前准备好重新启动浏览器。
That’s it! If you change your mind and want hardware media keys working in Chrome (or Edge) again, return here and set the hardware Media Key Handling option back to “Default” once again.
而已! 如果您改变主意并希望硬件媒体密钥再次在Chrome(或Edge)中工作,请返回此处,并将硬件媒体密钥处理选项再次设置为“默认”。
翻译自: https://www.howtogeek.com/426284/how-to-stop-chrome-or-edge-from-taking-over-your-media-keys/