WebRTC audio, "could not start audio source"
See original GitHub issueMy app uses WebRTC audio fine in the browser, but when I open the app on my Android phone, I get the console error “DOMException: Could not start audio source”.
Here’s how I’m trying to read audio:
const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false});
I have given my app the Android microphone permission (<uses-permission android:name="android.permission.RECORD_AUDIO" />
).
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
could not start audio source when trying to access audioinput ...
Am currently attempting to use Chromium extension for "signaling" for the capability to access the MediaStreamTrack from localhost request to WebRTC ...
Read more >DOMException: Could not start audio source - Stack Overflow
The site asks me if I want to allow microphone usage and when I go into the site settings, it says microphone and...
Read more >"Could not start audio source" in Windows or Webclient - 3CX
1. Click the Lock icon in your URL bar in the WebClient and ensure microphone is "Allowed" (You must always log into webclient...
Read more >"DOMException: Could not start audio source" is not in the ...
To : public-webrtc@w3.org ... not refuse to open sources set as default at the machine: "DOMException: Could not start audio source" is not ......
Read more >"Audio Error: Could Not Start Audio Source" - users
My microphone is no longer being recognized in Jitsi Meetings when launching in CHROME. When starting or joining a meeting i have an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like RECORD_AUDIO permission is not enough, you also need
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
But this will only work on Android 5, on Android 6+ you’ll need to manually request the permissions and the user will have to grant them.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.