Class: RecordRTCPromisesHandler

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

new RecordRTCPromisesHandler(mediaStream, config)

Promises for RecordRTC

RecordRTCPromisesHandler adds promises support in RecordRTC
Parameters:
Name Type Description
mediaStream MediaStream Single media-stream object, array of media-streams, html-canvas-element, etc.
config object {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.}
Author:
License:
Source:
See:
Example
var recorder = new RecordRTCPromisesHandler(mediaStream, options);
recorder.startRecording().then(successCB).catch(errorCB);