You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: DesktopCapturer API cannot start audio source #41069
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
22.0.0
What operating system are you using?
Windows
Operating System Version
Windows 10 10.0.19045 Build 19045
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When I start the Desktop Capturer to record display video and audio it should use the default output audio stream
Actual Behavior
When I have more than one connected output device (speakers and earphones) then I get a "DOMException: Could not start audio source".
Testcase Gist URL
No response
Additional Information
I use the exact method as shown on the docs page for DesktopCapturer const audioStream = await navigator.mediaDevices.getUserMedia({ audio: { mandatory: { chromeMediaSource: ‘desktop’ } }, video: { mandatory: { chromeMediaSource: ‘desktop’ } } } as any);
The as any is inserted to move around typescript errors
Update on the issue, I tested with setting my audio output default to be the speakers and not my usb connected headset and it worked. This is still not ideal as the users of the app will have usb headsets
Activity
Psyjakes commentedon Jan 22, 2024
Update on the issue, I tested with setting my audio output default to be the speakers and not my usb connected headset and it worked. This is still not ideal as the users of the app will have usb headsets
jkleinsc commentedon Mar 18, 2024
Thank you for reaching out!
The version of Electron reported in this issue has reached end-of-life and is no longer supported, so this issue will be closed.
If you're still experiencing this issue on a supported version of Electron, please file a new issue for that version of Electron.
Thanks in advance! Your help is appreciated.