record(frameRate?: number , mimeTypes?: string[] ): Recording

Start recording the canvas into a video. Note: This relies on the browser's support using the `MediaRecorder` API, and support is buggy at best from my (@dragoncoder047)'s testing. The best results I have gotten are with explicitly specifying `video/webm` and 60 FPS. Results with the default values are usually no good and even if both MIME type and framerate are specified, dropped frames, truncated videos, audio desynchronization, and even completely corrupted files have been gotten from this. `video/mp4` is technically supported by some browsers but I can't recommend it as MP4 has produced glitched and/or corrupted files much more often than WebM in my testing. If your players want to get a nice clean recording it's probably a better idea to point them to an external screen-recording program such as [OBS](https://obsproject.com).

paramframeRate- Target frame rate for the output video. If framerate is not specified, a new frame will be captured each time the canvas changes.

parammimeTypes- A list of MIME types such as `video/mp4`, `video/webm`. The browser will select the first one it can do when the recording is started. If none are supported, an error will be thrown.

returnsA control handle.

sincev2000.1

groupDebug