Disable media playback with media keys

評論

9 條評論

  • ThatOneRock

    This so much. I recently got the update on my discord client and I dont like it at all. its annoying when I have my media keys binded to my music players and nw discord is binded to them too. Its not something im fond of at all and I wish for this to be changed please

    4
    評論操作 永久連結
  • Maxbeebs

    It is very frustrating when I pause/play my music on Spotify via my media keys and I get ear-raped by some video that a random person has posted in the chat.

    Hoping to have an option to disable this soon, I know it is a flag that can be changed in chrome by going to " chrome://flags/ "  and then searching 'Hardware Media Key Handling' and then selecting disabled via the dropdown list.

    I know that Discord uses Electron and Chromium so I was thinking, maybe this option to disable the handling of media keys is in Discord somewhere?





    2
    評論操作 永久連結
  • pack

    This. It is a nuisance. Please give us the option to disable it.

    4
    評論操作 永久連結
  • bruh

    Facts, add an option to disable it

    3
    評論操作 永久連結
  • pack

    In the meantime, here's a fix for this bug:

    The problem only happens when playing a video from the chat, so if you are halfway through a video and don't want to play more or have it hijack your media keys, switch channels and then go back. The video will be stopped and you can get your keys back.

    0
    評論操作 永久連結
  • caspatrofaal

    Im surprised this made it out of beta without an option to turn it off. its kind of annoying to start a video, pause your music. and then start the video again because discord thinks you also wanted to pause the video.

    2
    評論操作 永久連結
  • JÄTTI

    Figured this out. Discord is electron and it uses chromium (chrome). In Chrome there are flags and one of them is "Hardware Media Key Handling" and it can be accessed from chrome://flags/#hardware-media-key-handling . So how to get that on Discord? Well for me discord starts with windows and for it its simple. So lets start with that.

    Follow the steps.

    1. Open "Registry Editor"

    2. Navigate to "Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"

    3. Find Discord, Right click and choose "Modify"

    4. Add " -disable-features=HardwareMediaKeyHandling" to the end of "Value data

    5. Click "Ok"and close Registry Editor

    6. Restart your PC and you are done.

     

    Now if you use discord from a Shortcut on your desktop or from start menu its bit more complicated. So here is how to do that.

    1. Start by going to your Discord installation folder. For me it's "C:\Users\USERNAME_HERE\AppData\Local\Discord\app-0.0.306"

    2. Now right click "Discord.exe" and choose "Create Shortcut"

    3. Rename Shortcut to "DiscordFlags" (or something similar but you need to remember this later)

    4. Right click "DiscordFlags" and choose "Properties"

    5. Now in "Target" at the end add " -disable-features=HardwareMediaKeyHandling

    6. Click "Ok"

    7. Now navigate to desktop or where ever your shortcut is (For start menu and Cortana search use the search it self to find discord and right click and choose "Open file location" and there is your shortcut to modify)

    8. Now that you have your preferred shortcut selected right click on it and choose "Properties"

    9. Now at the end of "Target" modify "Discord.exe" to "DiscordFlags.lnk

    10. Click "Ok" and you are ready to use your shortcut (Remember to close and open Discord for it to work)

     

    Hope this helps and I hope discord dev team can implement this as an standard feature on on-off setting inside of Discord settings.

     
    4
    評論操作 永久連結
  • caspatrofaal

    The solution does work, but i want to add a few things i ran into while running the second solution.

     

    It is possible your link doesn't link to discord but instead the update utility, in this case you will have to reroute the link to the latest version that is installed.

    Windows will also rightfully call you out for linking to a link, so instead of modifying the existing link, replace it with the link in which you added -disable-features=HardwareMediaKeyHandling

     

    0
    評論操作 永久連結
  • JÄTTI

    Yeah I know it's stupid way of doing it (with the double link) but I'm not sure of the usage of "Update.exe" and based on the name its something to do with updating :D. And that's why I didn't do a straight up link to "Discord.exe" from desktop etc. I wanted to keep basic functionally the same way it's intended.

     
    1
    評論操作 永久連結

登入寫評論。