new GetRecorderType(mediaStream, config)
It returns best recorder-type available for your browser.
GetRecorderType is an inner/private helper for RecordRTC.
Parameters:
Name | Type | Description |
---|---|---|
mediaStream |
MediaStream | MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. |
config |
object | {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.} |
- License:
- Source:
- See:
Example
var RecorderType = GetRecorderType(options);
var recorder = new RecorderType(options);