Ir al contenido principal

xr

Description

This library includes functions to capture images and videos within your Studio project. Also see Media Recorder Events.

Functions

startMediaRecorder

Start recording.

startMediaRecorder: () => void

stopMediaRecorder

Stop recording.

stopMediaRecorder: () => void

takeScreenshot

Take a screenshot. Returns a Promise that when resolved, provides a buffer containing the JPEG compressed image. When rejected, an error message is provided.

takeScreenshot: () => Promise<Blob>