ConcatenateBlobs | JavaScript - Source Code

You can record multiple blobs; then click "concatenateBlobs" button to concatenate all recorded blobs in single Blob. The resulting "single" Blob can be either played-back locally or pushed to server.

0 blobs recorded. To concatenate all, click right-side button.




How to use?

// https://www.webrtc-experiment.com/ConcatenateBlobs.js
// or: npm install concatenateblobs

// 2nd argument is type of "resulting-blob"
ConcatenateBlobs([arrayOfBlobs], 'audio/wav', function(resultingBlob) {

    POST_to_Server(resultingBlob);
    
    // or preview locally
    localVideo.src = URL.createObjectURL(resultingBlob);
});