audio-react-recorder icon indicating copy to clipboard operation
audio-react-recorder copied to clipboard

This library is reliably broken on android phones

Open Johnrobmiller opened this issue 3 years ago • 1 comments

There is a demo of this library on NPM. I tested it on both my Android phone and my roommate's phone. In both cases, it breaks. When pressing the "record" button (which is incorrectly labeled as the "start" button on the demo), nothing will record. When I test this in my local implementation, I get the error "cannot read peoperties of null (reading 'getAudioTracks')". It will work if I try to record after the initial break.

I recently saw someone posting about this bug in a different issue, although they were saying it was mac related. My implementation works fine on mac. There might be something else causing both of our problems as well as the bug currently in the demo.

Johnrobmiller avatar Sep 28 '21 17:09 Johnrobmiller

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.

lxtmohamedfaried avatar May 23 '22 15:05 lxtmohamedfaried