RecordRTC
RecordRTC copied to clipboard
getBlob() does not work
var blob = this.recordRTC.getBlob()
console.log('blob', blob)
the result is null. Recording is successful.
this.recordRTC.stopRecording(() => {
const blob = this.recordRTC.getBlob();
});
This issue still exists which makes all the examples in the readme wrong. This is pretty awful.
Is the package still maintained ? The doc doesn't seem to be updated.
async function stopRecording(){
await recorderRTCRef.current?.stopRecording();
const blob = await recorderRTCRef.current?.getBlob();
console.log('blob', blob)
await recorderRTCRef.current?.reset();
}
I am using this code in react project and it works fine for me