Optionalparams: IParamsThe parameters for the media stream builder.
The fallback function to be called when an error occurs during capture. It receives an Error object as its argument.
The callback function to be called when the capture starts.
The callback function to be called when the capture ends.
The callback function to be called when the media stream changes. It receives the media stream and an object with the current capture IDs as arguments.
Determines whether to throw an error when an error occurs during capture instead of using the fallback function.
Determines whether to capture video when the media stream builder is initialized.
Determines whether to capture audio when the media stream builder is initialized.
The factor to compress the video frame by. (COMPRESS_FRAME is a constant value)
The maximum frame rate of the video capture. (MAX_FPS is a constant value)
The media stream builder.
Creates a media stream builder that provides functionality to capture audio, video, and screen using the WebRTC API.