RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
There is no check if self still exists when the timeout ends.
That causes an issue in my react app: when the component is unmounted before the recording is stopped, an error occurs saying Cannot read property 'blob' of null.
https://github.com/muaz-khan/RecordRTC/blob/3585e673bc646034b28de3c55922b0a84d4636e9/dev/RecordRTC.js#L217-L221
There is no check if
self
still exists when the timeout ends. That causes an issue in my react app: when the component is unmounted before the recording is stopped, an error occurs sayingCannot read property 'blob' of null
.