I'm trying to convert mediaBlobUrl that I get after recording a video using Media Recorder to a mp4 file,
const {
status,
startRecording,
stopRecording,
mediaBlobUrl,
} = useReactMediaRecorder({ video: true });
const myFile = new File([mediaBlobUrl], "demo.mp4", { type: 'video/mp4' });
But after logging out the file, I always get the file size as 64 Bytes and it doesn't work.
Note: However If I download the file using blob url like this,
<a href={mediaBlobUrl} download="myFile">Download file</a>
And then upload the file and check its size, it is working fine.
Is there any other way to convert the blob Url to a mp4 video file?