Closed vyashh closed 3 years ago
Solved!
Be sure to ask the user for permission on mobile devices. Also make sure that when using chrome https is enabled. Otherwise it won't ask for permission and just crash. I tried it on firefox and that worked because it doesn't require https.
Source: https://stackoverflow.com/questions/58716619/error-activating-microphone-in-google-chrome
const permissions = navigator.mediaDevices.getUserMedia({ audio: true, video: false })
Hey,
I made an app that records audio. On desktop it works, but when I open the website on mobile. The whole thing crashes as soon as the recording is supposed to start. I don't know how to go any further. Does someone here have a solution for this?
The app is made in React 17.0.1.
Thanks in advance!