Open rusith opened 6 years ago
I think you should destroy the recorder too once you've cleared the data? Maybe this.state.rtc.destroy()
?
If you're re-creating instances of the recorder each time there is a limit on how many you can create.
I updated the issue, now Im calling the destroy function but still the error is there.
DISTROYING
background.js:86887 undefined
background.js:86888 {AudioContext: ƒ}
background.js:86895 RecordRTC is destroyed. // Destroy function has called
I checked the RecordRTC's destroy
function. when i call the destroy function, Storage.AudioContextConstructor
is undefined
.
/*Code from RecordRTC.js from line 747 (I added the console.logs below)*/
console.log('DESTROYING');
console.log(Storage.AudioContextConstructor); // This is undefined
console.log(Storage); // This is a function
if (Storage.AudioContextConstructor) {
Storage.AudioContextConstructor.close();
Storage.AudioContextConstructor = null;
}
See the above comment for the logs.
You should have only one AudioContext
in the page.
RecordRTC should handle that, right ? the problem is, Storage.AudioContextConstructor
is undefined
when i call the destroy
function. so the AudioContext
created when starting the recording is not closing when the recording ends.
Same issue as https://github.com/muaz-khan/RecordRTC/issues/344
destroy useless
We use RecordRTC to record the window in a Chrome extension. The recording works fine except when we try to record the same window more continuously, it throws an error
Error throws from
$initializeRecordRtc() is something like below
My code which stops the recording is something like this
Thanks in advance !