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

[Bug]: DesktopCapturer API cannot start audio source #41069

Closed
3 tasks done
Psyjakes opened this issue Jan 22, 2024 · 2 comments
Closed
3 tasks done

[Bug]: DesktopCapturer API cannot start audio source #41069

Psyjakes opened this issue Jan 22, 2024 · 2 comments

Comments

@Psyjakes
Copy link

Preflight Checklist

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

@Psyjakes
Copy link
Author

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
Copy link
Contributor

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.

@jkleinsc jkleinsc closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants