MultiStreamRecorder(mediaStreams, config)

new MultiStreamRecorder(mediaStreams, config)

Multi-videos recorder.

MultiStreamRecorder can record multiple videos in single container.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams.

config object

{disableLogs:true, frameInterval: 1, mimeType: "video/webm"}

Author:
License:
Source:
See:
Example
var options = {
    mimeType: 'video/webm'
}
var recorder = new MultiStreamRecorder(ArrayOfMediaStreams, options);
recorder.record();
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);

    // or
    var blob = recorder.blob;
});

Methods

(static) this.addStreams(mediaStreams)

Add extra media-streams to existing recordings.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.addStreams([newAudioStream, newVideoStream]);

(static) this.addStreams(mediaStreams)

Add extra media-streams to existing recordings.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.addStreams([newAudioStream, newVideoStream]);

(static) this.clearRecordedData()

This method resets currently recorded data.

Source:
Example
recorder.clearRecordedData();

(static) this.clearRecordedData()

This method resets currently recorded data.

Source:
Example
recorder.clearRecordedData();

(static) this.getMixer(mediaStreams)

Returns MultiStreamsMixer

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
let mixer = recorder.getMixer();
mixer.appendStreams([newStream]);

(static) this.getMixer(mediaStreams)

Returns MultiStreamsMixer

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
let mixer = recorder.getMixer();
mixer.appendStreams([newStream]);

(static) this.pause()

This method pauses the recording process.

Source:
Example
recorder.pause();

(static) this.pause()

This method pauses the recording process.

Source:
Example
recorder.pause();

(static) this.record()

This method records all MediaStreams.

Source:
Example
recorder.record();

(static) this.record()

This method records all MediaStreams.

Source:
Example
recorder.record();

(static) this.resetVideoStreams(mediaStreams)

Reset videos during live recording. Replace old videos e.g. replace cameras with full-screen.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.resetVideoStreams([newVideo1, newVideo2]);

(static) this.resetVideoStreams(mediaStreams)

Reset videos during live recording. Replace old videos e.g. replace cameras with full-screen.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.resetVideoStreams([newVideo1, newVideo2]);

(static) this.resume()

This method resumes the recording process.

Source:
Example
recorder.resume();

(static) this.resume()

This method resumes the recording process.

Source:
Example
recorder.resume();

(static) this.stop(callback)

This method stops recording MediaStream.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);
});

(static) this.stop(callback)

This method stops recording MediaStream.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);
});

MultiStreamRecorder(mediaStreams, config)

new MultiStreamRecorder(mediaStreams, config)

Multi-videos recorder.

MultiStreamRecorder can record multiple videos in single container.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams.

config object

{disableLogs:true, frameInterval: 1, mimeType: "video/webm"}

Author:
License:
Source:
See:
Example
var options = {
    mimeType: 'video/webm'
}
var recorder = new MultiStreamRecorder(ArrayOfMediaStreams, options);
recorder.record();
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);

    // or
    var blob = recorder.blob;
});

Methods

(static) this.addStreams(mediaStreams)

Add extra media-streams to existing recordings.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.addStreams([newAudioStream, newVideoStream]);

(static) this.addStreams(mediaStreams)

Add extra media-streams to existing recordings.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.addStreams([newAudioStream, newVideoStream]);

(static) this.clearRecordedData()

This method resets currently recorded data.

Source:
Example
recorder.clearRecordedData();

(static) this.clearRecordedData()

This method resets currently recorded data.

Source:
Example
recorder.clearRecordedData();

(static) this.getMixer(mediaStreams)

Returns MultiStreamsMixer

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
let mixer = recorder.getMixer();
mixer.appendStreams([newStream]);

(static) this.getMixer(mediaStreams)

Returns MultiStreamsMixer

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
let mixer = recorder.getMixer();
mixer.appendStreams([newStream]);

(static) this.pause()

This method pauses the recording process.

Source:
Example
recorder.pause();

(static) this.pause()

This method pauses the recording process.

Source:
Example
recorder.pause();

(static) this.record()

This method records all MediaStreams.

Source:
Example
recorder.record();

(static) this.record()

This method records all MediaStreams.

Source:
Example
recorder.record();

(static) this.resetVideoStreams(mediaStreams)

Reset videos during live recording. Replace old videos e.g. replace cameras with full-screen.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.resetVideoStreams([newVideo1, newVideo2]);

(static) this.resetVideoStreams(mediaStreams)

Reset videos during live recording. Replace old videos e.g. replace cameras with full-screen.

Parameters:
Name Type Description
mediaStreams MediaStreams

Array of MediaStreams

Source:
Example
recorder.resetVideoStreams([newVideo1, newVideo2]);

(static) this.resume()

This method resumes the recording process.

Source:
Example
recorder.resume();

(static) this.resume()

This method resumes the recording process.

Source:
Example
recorder.resume();

(static) this.stop(callback)

This method stops recording MediaStream.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);
});

(static) this.stop(callback)

This method stops recording MediaStream.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder.stop(function(blob) {
    video.src = URL.createObjectURL(blob);
});