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
romp99
Oct 31, 2022Copper Contributor
Has anyone heard of a solution to this that still works? It seems to suddenly have gotten worse on my system and it completely ignores the "-disable-features=HardwareMediaKeyHandling" flag. I have to restart Teams every time I get a call for my media keys to work.
I am so sick of the Teams devs spending all their time adding new features and none fixing the myriad of bugs this program has. We can't get rid of this program fast enough for me.
I am so sick of the Teams devs spending all their time adding new features and none fixing the myriad of bugs this program has. We can't get rid of this program fast enough for me.
TheParadoX1984
Nov 01, 2022Copper Contributor
Same Problem here. It is really annoying.
- dawustNov 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 😞
- 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.
- 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!