Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Corrupt Blob triggered by mediaRecorder.requestData()

I have an issues with Audio Web API. Why when I use mediaRecorder.requestData(); instead MediaRecorder.stop() of the Blob retrieve from dataavailable event is "corrupt".

See here an example of output

like image 982
Le farfadet Avatar asked Jun 15 '26 02:06

Le farfadet


1 Answers

Only the first blob from ondataavailable event will contain file signature. The rest will not contain it, hence it is not playable. You need to concatenate the blobs into one big blob.

Quoting from bugzilla

My understanding of the spec is that this bug is invalid; i.e., individual blobs are not individually decodable in general; they must be concatenated to produce a usable resource. And that's what we implemented.

like image 145
Adib Zaini Avatar answered Jun 17 '26 21:06

Adib Zaini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!