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

TypeError: self.context.close is not a function

Open JohnGoodman opened this issue 3 years ago • 5 comments

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 avatar Apr 29 '21 21:04 JohnGoodman

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()

JohnGoodman avatar Apr 29 '21 21:04 JohnGoodman

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

yeganehaym avatar May 09 '21 18:05 yeganehaym

The same problem here.

lorenamelor avatar Mar 08 '22 12:03 lorenamelor

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.

lxtmohamedfaried avatar May 18 '22 12:05 lxtmohamedfaried

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

ubaidbaidi786 avatar Nov 14 '22 08:11 ubaidbaidi786