Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(macOS): microphone crash on screen sharing #1023

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 9, 2025

☑️ Resolves

Requesting an entire desktop with a stream with audio is not actually supported in macOS. Somehow an attempt to request it results in losing audio devices access with

The AudioContext encountered an error from the audio device or the WebAudio renderer.

Current workaround is as simple as removing an unsupported option.

An alternative is to use experimental native screen sharing selector. But it is more complex, requires changes on the Talk side and loses an Entire desktop option for Windows and Linux.

Screenshots

See mic icon. Before it is off and disabled due to an error.

Before After
Screenshot 2025-01-15 at 16 21 51 Screenshot 2025-01-15 at 16 19 01

@ShGKme ShGKme added bug Something isn't working 2. developing os: macOS 🍎 labels Jan 9, 2025
@ShGKme ShGKme added this to the 🌠 Next Patch milestone Jan 9, 2025
@ShGKme ShGKme self-assigned this Jan 9, 2025
@ShGKme ShGKme changed the title fix(macOS): microphone crash with screen sharing fix(macOS): microphone crash on screen sharing attempt Jan 9, 2025
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the fix/macos-screensharing branch from 9132d2e to d67a778 Compare January 15, 2025 15:24
@ShGKme ShGKme marked this pull request as ready for review January 15, 2025 15:25
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good for a quick solution

@ShGKme ShGKme merged commit 588f98a into main Jan 15, 2025
11 checks passed
@ShGKme ShGKme deleted the fix/macos-screensharing branch January 15, 2025 15:32
@ShGKme ShGKme changed the title fix(macOS): microphone crash on screen sharing attempt fix(macOS): microphone crash on screen sharing Jan 15, 2025
This was referenced Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen share on Mac mutes microphone
2 participants