closeio / mic-recorder-to-mp3

Microphone Recorder to mp3
MIT License
244 stars 138 forks source link

Permission Issue on Chrome #49

Open T3-RnD opened 10 months ago

T3-RnD commented 10 months ago

I get this issue when I start recording:

TypeError: Cannot read properties of undefined (reading 'getUserMedia') at index.js:15923:32

It is at this line of code:

15922 return new Promise(function (resolve, reject) { 15923 navigator.mediaDevices.getUserMedia({ audio: audio }).then(function (stream) { 15924 _this2.addMicrophoneListener(stream); 15925 resolve(stream); 15926 }).catch(function (err) { 15927 reject(err); 15928 }); 15929 });

How can I fix this issue?