Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
/ ConcatenateBlobs Public archive

Simply pass array of blobs. This javascript library will concatenate all blobs in single Blob object.

Notifications You must be signed in to change notification settings

muaz-khan/ConcatenateBlobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo: https://www.WebRTC-Experiment.com/ConcatenateBlobs/

Simply pass array of blobs. This javascript library will concatenate all blobs in single "Blob" object.

It is MIT Licenced, which means that you can use it in any commercial/non-commercial product, free of cost.

npm install concatenateblobs

# to use in nodejs
var ConcatenateBlobs = require('concatenateblobs');
ConcatenateBlobs(array_of_blobs, blob_type, function(resultingBlob) {
	console.log(resultingBlob);
});

To use it:

<script src="./node_modules/concatenateblobs/ConcatenateBlobs.js"></script>

1. Link The Library

https://cdn.webrtc-experiment.com/ConcatenateBlobs.js

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

2. Use it

// 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);
});

Credits

License

ConcatenateBlobs.js is released under MIT licence . Copyright (c) Muaz Khan.

About

Simply pass array of blobs. This javascript library will concatenate all blobs in single Blob object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published