Enable video capture with MediaRecorder
Open
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
Assessment
This issue has not been assessed yet.