Skip to content

Conversation

jeanfbrito
Copy link
Collaborator

Problem

Windows 11 users were unable to grant microphone permissions to Rocket.Chat for video calls because:

  • The app didn't appear in Windows Settings > Privacy & Security > Microphone
  • Users got "microphone access denied" errors during video calls
  • No way to configure permissions even when users wanted to allow them

Root Cause

Windows requires applications to make an actual getUserMedia() request to register with the system permission manager. Rocket.Chat was only reacting to permission requests during video calls, which wasn't enough to trigger Windows registration.

Solution

Proactive Media Registration: App now requests microphone access on startup to register with Windows
Fallback Dialog: Helpful guidance dialog still appears if permissions are denied during video calls
Windows-Only: Changes only affect Windows; macOS and Linux behavior unchanged

What Users Will Experience

  • Rocket.Chat now appears in Windows Privacy & Security > Microphone settings immediately after first launch
  • Users can grant permissions before making video calls (no surprises during meetings)
  • Seamless video calls when permissions are properly configured
  • Clear guidance if permission issues occur

Technical Implementation

  • Added ensureWindowsMediaRegistration() function in src/ui/main/rootWindow.ts
  • Executes navigator.mediaDevices.getUserMedia({ audio: true }) on app startup
  • Maintains existing permission dialog system as fallback
  • Windows-specific with platform checks (process.platform === 'win32')

Testing

  • TypeScript compilation passes
  • ESLint linting clean
  • App registers with Windows permission system on startup
  • Video call permissions work correctly
  • Fallback dialog appears when needed

Closes #3031

@jeanfbrito jeanfbrito merged commit 05a056b into master May 29, 2025
8 checks passed
@jeanfbrito jeanfbrito deleted the fix-windows-mic-access branch May 29, 2025 15:43
@frdrchsps
Copy link

is this already included in 4.5.0? because it still does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jitsi integration - no audio permission (Win11)
2 participants