Repository navigation
Don't pause Sonos when a Teams call starts - #109
Merged
Merged
Conversation
Teams pauses every SMTC media session on joining a call, which paused the office speakers for everyone. SMTC pause commands are now ignored while another app has the microphone open, and if the mic opens within 4s of a pause we resume playback. Normal media-key/flyout pauses stay instant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Coverage Report
File CoverageNo changed files found. |
RichKelsey
added a commit
that referenced
this pull request
Oct 15, 2026
…110) The mic-in-use check from #109 didn't stop the pauses: Bluetooth headsets send pause when they connect, switch to call mode or come off, which doesn't line up with the mic opening. Windows can't tell those apart from a deliberate media-key pause, so pause commands from SMTC and Chromium's media session are now ignored on Windows. Play, next and previous still work, and pausing from the app and its taskbar buttons is unchanged. Removes the now-unused mic-in-use module. Co-authored-by: Richard Kelsey <rkelsey@truenorthit.co.uk> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When you join a Teams call, Teams pauses every Windows media session (SMTC). The native SMTC addon sent that pause straight to Sonos, so one person joining a call paused the office speakers for everyone.
Fix
The pause event doesn't say who sent it, so "another app has the microphone open" is used as the call signal (read from the Windows CapabilityAccessManager consent store, the same data behind the taskbar mic indicator):
SmtcPauseIgnoredtelemetry event.Only the SMTC path is gated. The in-app pause button and taskbar thumbnail buttons are unaffected.
Trade-offs
Testing
reg queryoutput:node --test src/mic-in-use.test.tstscand ESLint pass.🤖 Generated with Claude Code