Re: [mediacapture-record] How to concatenate Blobs of recordings into single file capable of playback? (#130)

I had this exact issue and was able to resolve it by using [RecordRTC](https://recordrtc.org/)

It uses `MediaRecorder` and has pretty much the same syntax, however the `blob` returned by `ondataavailable` is different. With `MediaRecorder`, each `blob` contained header information (as discussed in previous comments here) which prevented concatenation, meaning the final video would stop playing after 1-2 seconds. 

However, each `blob` returned by `RecordRTC` after the first one seems to have these headers filtered out, meaning concatenation is very simple, e.g.
```
let blobs = [];
ondataavailable: (blob) => {
    blobs = [...blobs, blob];
}
// Concatenate blobs
let fullVideoBlob = new Blob(blobs, {'video/mp4'})
```
Hope this helps anyone looking for a solution to this issue!

-- 
GitHub Notification of comment by LucaGianni
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/130#issuecomment-1325340172 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 23 November 2022 16:25:58 UTC