[Question] How to get the mic mediaStream?
See original GitHub issueSorry, for the noob question. I came across this lib while trying to find an alternative for navigator.mediaDevices.getUserMedia({ audio: true })
which does not work with cordova-android 6.4.0 for me because of “NotReadableError - Could not start source” even with the mic permission enabled. I’ve been trying to figure out how get the recording mic’s mediaSteam from audioinput
. Any suggestions?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How can a MediaStream (microphone)… - Apple Developer
In my webapp I use a MediaStream (microphone) to convert the spoken word into text ... So I get the visualisation styled and...
Read more >javascript - Microphone activity level of WebRTC MediaStream
I would like some advice on how best to get the microphone activity level of an audio MediaStreamTrack javascript object in Chrome/Canary.
Read more >MediaStream - Web APIs - MDN Web Docs - Mozilla
Chrome Edge
MediaStream Full support. Chrome55. more. Toggle history Full support. Edge...
MediaStream() constructor Full support. Chrome55. more. Toggle history Full support. Edge...
active Full support....
Read more >Media Capture and Streams - W3C
This document defines APIs for requesting access to local multimedia devices, such as microphones or video cameras. This document also defines ...
Read more >Web API WebRTC.getUserMedia() Method - GeeksforGeeks
Using the MediaStream received from the getUserMedia(): If the user gives permission to access the camera and the microphone, then this method ...
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
There is actually a way: If you need a MediaStream, you should be able to connect the audioinput to a MediaStreamAudioDestinationNode as you see in the example there, an oscillator node is connected to such a node, but in this case you would do something like this instead:
And now you should be able to reference the MediaStream by using
dest.stream
So the MediaStreamAudioDestinationNode basically converts the data coming from Web Audio (which this plugin is using) into a MediaStream with a single AudioMediaStreamTrack.
This is gold thanks for the input!!!