MultiStreamRecorder.js & MediaStreamRecorder

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

Recording multiple videos in single WebM using MediaStreamRecorder

ms
// cdn.webrtc-experiment.com/MediaStreamRecorder.js
var mediaConstraints = {
    audio: true,
    video: true
};

navigator.getUserMedia(mediaConstraints, onMediaSuccess, onMediaError);

function onMediaSuccess(stream) {
	var arrayOfStreams = [stream, stream, stream, stream];
    var multiStreamRecorder = new MultiStreamRecorder(arrayOfStreams);
    multiStreamRecorder.ondataavailable = function(blob) {
        // URL.createObjectURL(blob)
    };
    multiStreamRecorder.start(3000);
}

function onMediaError(e) {
    console.error('media error', e);
}
MediaStreamRecorder Demos

Latest Updates

Latest Issues

Feedback

Enter your email too; if you want "direct" reply!

Latest Updates