This can helps recording videos from BabylonJS. This is based on the available WebRTC functionalities of the browser.
Create a new VideoCapture object which can help converting what you see in Babylon to a video file.
Defines the BabylonJS Engine you wish to record
Defines options that can be used to customized the capture
True wether a recording is already in progress.
Releases internal resources used during the recording.
Starts recording the canvas for a max duration specified in parameters.
Defines the name of the file to be downloaded when the recording stop. If null no automatic download will start and you can rely on the promise to get the data back.
Defines the maximum recording time in seconds. It default to 7 seconds. A value of zero will not stop automatically, you would need to call stopRecording manually.
a promise callback at the end of the recording with the video data in Blob.
Stops the current recording before the default capture timeout passed in the startRecording functions.
Returns wehther or not the VideoRecorder is available in your browser.
Defines the Babylon Engine to check the support for
true if supported otherwise false
Generated using TypeDoc