question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebRTC audio, "could not start audio source"

See original GitHub issue

My 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
jcesarmobilecommented, Sep 20, 2018

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.

0reactions
ionitron-bot[bot]commented, Nov 12, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found