google / google/model-viewer

Enable video capture with MediaRecorder

Open
#1,009 1 comment 0 reactions 0 assignees View on GitHub
arc: community arc: extensibility project: model-viewer type: feature
Dominant language
TypeScript
Stars
8.2k
Forks
947
PR merge metrics
No merged PRs in 30d

Description

If we exposed a [`captureStream`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream) method then our users could use [`MediaRecorder`](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder) to capture video without any additional coordination on our side.

Our `captureStream` method would probably have to do two things:

1. Force multi-context rendering
2. Forward the result of invoking `captureStream` on the 2D canvas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.