react-media-recorder
react-media-recorder copied to clipboard
How get an audio blob an OnStop like video
Hello, How can i get the audio blob like video blob in onStop func. I can get a audioStream, but i need an audio as the same form like video, to send it to API. Thanks)

You can get it like
const { status, startRecording, stopRecording, mediaBlobUrl } = useReactMediaRecorder({ video: false, onStop: onStopRecording });