You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now whenever you stream.destroy, there is a chance that there is still a Blob forming if your frameSize was set to a high number eg. 120s. But this is not checked or accounted for, meaning that stream.destroy invocation would essentially get rid of that last <120s that was still in memory.
Calling recorder.requestData() before closing everything (stream/recorder/ws) and awaiting it somehow would be the fix for this, but at this point the way closing or finishing the whole chain of everything works is very hacky and not async at all, surviving on setTimeouts, which is a very no-no.