35

I use Microsoft Teams in my corporate environement.

I have a multimedia keyboard (Logitech MX keys if it matters) that have a play/pause button.

When I press the button, it triggers the Microsoft Teams ring tone (even if no communication is active). Popup contains Microsoft Teams Notification:

Microsoft Teams ring tone

The right button in the prompt takes me to my actual multimedia app (Deezer Windows 10 app).

How to avoid MS Teams to be registered as a multimedia app ? Not sure what's the behind the scene regarding this windows feature.

PS: my system is Windows 10 x64 20H2 professional. MS Teams is in the release channel (I guess)

Steve B
  • 2,252

5 Answers5

13

Start Teams with -disable-features=HardwareMediaKeyHandling

eg. C:\Users\Username\AppData\Local\Microsoft\Teams\current\Teams.exe -disable-features=HardwareMediaKeyHandling

or C:\Users\Username\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe" --process-start-args="-disable-features=HardwareMediaKeyHandling"

Source: https://answers.microsoft.com/en-us/msteams/forum/all/teams-and-media-keys/136320bb-7af0-4bdc-8743-56608ff576b2?page=2

hectorct
  • 251
4

This works for me on MacOS:

Terminal command: open "/Applications/Microsoft Teams.app" --args -disable-features=HardwareMediaKeyHandling

Paste it into a terminal and you are good to go.

2

I've found on a reddit thread that when you use ctrl or shift and your media keys you will stop teams from intercepting.

This works for me but is a bit annoying as you want to press one button.

So to fix this aswell ive used PowerToys (https://learn.microsoft.com/en-us/windows/powertoys/) to remap my play/pauze to ctrl+play pause. enter image description here

This seems to work for now, i'll update if this ever starts to fail.

EDIT: PowerToys can do alot of other things aswell and is very easy to install, so don't be scared away from it! I've also used it to map the "scroll lock" key of my laptop to play+pause, as it does not have a play/pause button.

1

I have the same problem and I can offer my workaround: When you press play and the Teams ringtone starts along with your music, you can press pause in the Teams Notification popup.

If/when you pause you music again the ringtone should not restart.

Giacomo1968
  • 58,727
Greg
  • 11
  • 1
1

For all Linux Users: Change the last line in file /bin/teams nohup "$TEAMS_PATH" "$@" --disable-namespace-sandbox --disable-setuid-sandbox --disable-features=HardwareMediaKeyHandling > "$TEAMS_LOGS/teams-startup.log" 2>&1 &

(Just add --disable-features=HardwareMediaKeyHandling before the > "$Teams_LOGS)

(This is for MS Teams on Arch installed over pacman, might not work for other installs.)