Skip to main content
Record the R3F canvas output to a video file using the MediaRecorder API.

Signature

Usage

Options

Return Value

Supported Formats

Notes

  • Uses the MediaRecorder API on the canvas stream
  • Recording quality depends on canvas resolution and browser encoding
  • stop() returns a Promise since the MediaRecorder needs to finalize the file
  • WebM is the most widely supported format for canvas recording