RecordRTC icon indicating copy to clipboard operation
RecordRTC copied to clipboard

getBlob() does not work

Open nicolasxu opened this issue 8 years ago • 4 comments

	var blob = this.recordRTC.getBlob()
            console.log('blob', blob)

the result is null. Recording is successful.

nicolasxu avatar Jan 12 '18 15:01 nicolasxu

this.recordRTC.stopRecording(() => {
  const blob = this.recordRTC.getBlob();
});

sachq avatar Aug 12 '19 18:08 sachq

This issue still exists which makes all the examples in the readme wrong. This is pretty awful.

saevarb avatar Feb 01 '21 12:02 saevarb

Is the package still maintained ? The doc doesn't seem to be updated.

jeanhdev avatar Aug 26 '21 17:08 jeanhdev

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

BLooDBRothER avatar May 25 '23 03:05 BLooDBRothER