Forum Discussion
graemec5
Dec 02, 2020Brass Contributor
Media Keys and Teams notifications
If I use keyboard media keys to pause music when I receive a call in teams, the notification sound doesn't seem to get dismissed when I answer the call. So, when I later press play, it also resumes p...
- Dec 28, 2020Hi graemec5
Known issue, as raised here on uservoice
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/39956326-media-keys-affecting-teams-web-app
If you go to that uservoice, a few comments down you should see a solution to this: go to avatar > settings > permissions > turn off midi device. People have reported that it has solved it for them
Hope this resolves and answers your question
Best, Chris
TheParadoX1984
Nov 01, 2022Copper Contributor
Same Problem here. It is really annoying.
dawust
Nov 02, 2022Copper Contributor
The command line parameters are no longer passed to the Chromium instance of Electron. I'm not sure if it's a bug of Teams or Electron, but I have my guess 😉
But you can still disable HardwareMediaKeyHandling by some advanced methods. Take a hex editor and search for HardwareMediaKeyHandling in teams.exe.
You'll find something like:
4D 65 64 69 61 4B 65 79 48 61 6E 64 6C 69 6E 67 00 00 00 00 00 00 00 00 38 C7 09 47 01 00 00 00 01 00 00 00 00 00 00 00
Replace the last instance of 01 with 00 which should disable HardwareMediaKeyHandling again
4D 65 64 69 61 4B 65 79 48 61 6E 64 6C 69 6E 67 00 00 00 00 00 00 00 00 38 C7 09 47 01 00 00 00 00 00 00 00 00 00 00 00
This will most likely violate the end-user license agreement and these changes will also most likely be reverted by any Teams update. But if you came this far, you should be able to find a way to patch the file automatically after every Teams update.
Well, that's what we are left with when Teams can't get basic features right in 2022.
- MrDakNov 08, 2022Copper Contributor
dawust Hey, thank you very much for this tip. Seems to work fine.
BTW just use notepad++ with HEX-Editor Plugin to edit it.
- unionpNov 16, 2022
Microsoft
I just tried it, and when I set that byte to 00, Teams won't launch until I change it back to 01 😞
- dawustNov 16, 2022Copper Contributor
What is the filepath of your Teams shortcut 'C:\Users\YourName\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe"' or 'C:\Users\YourName\AppData\Local\Microsoft\Teams\current\Teams.exe'? The former one doesn't work for me either, maybe Update.exe verifies the checksum of Teams.exe. So could you just try to start Teams.exe instead if it isn't already the case.
- SharpTechNov 09, 2022Copper ContributorI really hate that Microsofts approach has become "make everything as primitive as can be for idiot users" without giving their users any option to customize their apps anymore. Back in the day you had tons of settings, now everythings forced onto you. Same for Windows 11. Took me one year to find some hidden Windows <10 menus where I could finally disable Headset mode on my bluetooth headphones, just so that games and Teams stopped enabling Headset mode everytime although I explicitly deactivated those audio devices. All they make is more problems and worse software...
- Christian_WenzNov 07, 2022Copper ContributorMicrosoft seems to have deprecated this setting entirely, because as of today, not even editing teams.exe like this seems to prevent them from preventing me from pausing my music when I get a call. I cannot fathom what they stand to gain from this.
- IainMNormanNov 08, 2022Copper Contributor
Hex editing worked for me today Christian_Wenz
I had to change the 01 to 00 on the first byte of the last group of 8 bytes
4861726477617265 4D656469614B6579
48616E646C696E67 0000000000000000
38C7094701000000 0100000000000000I don't recommend people do this unless they know what they are doing though, you will end up having to reinstall if it goes wrong.
- Christian_WenzNov 08, 2022Copper ContributorThe second to last group of 8 bytes is different for me, which is why I was confused. I can confirm that it does in fact work for me now, as well.
- TheParadoX1984Nov 03, 2022Copper ContributorThanks, but somehow I cannot find 4D 65 64 69 61 4B 65 79 48 61 6E 64 6C 69 6E 67 00 00 00 00 00 00 00 00 38 C7 09 47 01 00 00 00 01 00 00 00 00 00 00 00 🤔
- Bas_ConijnNov 03, 2022Copper Contributor
Search using HxD for the following hex 4D 65 64 69 61 4B 65 79 48 61 6E 64. Make sure that Hex-values is selected when searching. On the "Decoded text" column it should say MediaKeyHandling
It should be at offset 0706CF00.
dawustThe fix works great. Thanks!