doppelgunner/audio-react-recorder

Not working on mac

Opened this issue · 2 comments

Get TypeError: Cannot read properties of null (reading 'getAudioTracks')
Works fine on Windows

image

I had the same issue and later discovered that is the behavior when the user doesn't allow the site to access the mic. It is still a bug because the recorder seems to recording correctly by the the exception is thrown when you try to stop the recorder element.

My recommendation that you don't display or include the recorder component when the mic access is not allowed.

Im having this exact error as well, only on ios Safari. I tried what was recommended by

navigator.mediaDevices.getUserMedia({audio: true}).then(() => { setHasPermissions(true) })

I only display the whole component until there is permissions, but I still get the exact error.