Can't stop microphone in react functional components
See original GitHub issueWavesurfer: 3.3.0 Chrome: Version 79.0.3945.117 (Official Build) (64-bit) MacOS: 10.14.6 CODE: https://codepen.io/sascharissling/pen/abzKZwB?editors=0010
Hello there. I’m running wavesurfer with the microphone in a React app using functional components.
I can start the microphone just fine. But whenever i stop the microphone i get a `this.stream.stop is not a function``
This also happens when i call the stop, destroy, stopDevice with a timeout after letting the mic start automatically on rendering inside the useEffect
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
How to stop recorder of react-mic when parent component is ...
It's working fine, but in some cases, when a user click on some other link in app while recorder is ON, the parent...
Read more >[Solved]-How to start and stop both the webcam stream and ...
Coding example for the question How to start and stop both the webcam stream and microphone in React JSX using WebRTC?-Reactjs.
Read more >stopRecorder not working in functional component · Issue #313
yes i have test with a test project it doesn't work with functional component. here is stop function i am using. const onStopRecord...
Read more >react-mic - npm
Record audio from your microphone and display as a sound oscillation. ... Start using react-mic in your project by running `npm i react-mic`...
Read more >Using the React Speech Recognition Hook for voice assistance
React Speech Recognition is a React Hook that works with the Web Speech API to translate speech from your device's mic into text....
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
okay. thanks for your time! 😃 love the package. have a great day!
No idea, I don’t use/like React. Please use stackoverflow or react forums for that question.