doppelgunner / audio-react-recorder

Audio / Voice Recorder for ReactJS using Web Audio API
49 stars 42 forks source link

TypeError: self.context.close is not a function #6

Open JohnGoodman opened 3 years ago

JohnGoodman commented 3 years ago

Hey, sometimes ( but not every time ), when I start the recorder, it throws this error:

TypeError: self.context.close is not a function ScriptProcessorNode._this.recorder.onaudioprocess src/index.js:164

161 | self.stream.getTracks().forEach(function (track) { 162 | track.stop() 163 | }) 164 | self.context.close() 165 | ^ } 166 | } 167 | // we clone the samples

Any idea what is causing this?

JohnGoodman commented 3 years ago

Looking at the code, I'm wondering if line 164 of src/index.js needs to be updated from self.context.close() to self.context.closeMic()

yeganehaym commented 3 years ago

I have the same problem with the Firefox browser in the Chrome working very well

lorenamelor commented 2 years ago

The same problem here.

lxtmohamedfaried commented 2 years ago

I have the same problem with the Firefox browser in the Chrome working very well

We had the same problem with Firefox but works fine with chrome.

ubaidbaidi786 commented 1 year ago

I have the same problem in chrome some time and mostly in firefox