Media Recorder Events
Description
This Media Recorder allows you to capute screenshots and record video of your Studio project at runtime.
Events
RECORDER_SCREENSHOT_READY
Emitted when screenshot is ready.
Properties
Property | Type | Description |
---|---|---|
blob | Blob | The JPEG image blob of the screenshot |
Example
world.events.addListener(world.events.globalId, ecs.events.RECORDER_SCREENSHOT_READY, (e) => {
const blob = e.data;
console.log('Screenshot blob:', blob);
});
RECORDER_VIDEO_STARTED
Emitted when recording has started.
Properties
None.
Example
world.events.addListener(world.events.globalId, ecs.events.RECORDER_VIDEO_STARTED, () => {
console.log('Recording started');
});
RECORDER_VIDEO_STOPPED
Emitted when recording has stopped.