MDN self-hosted library · e01.org

VideoFrame: colorSpace property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const cnv = document.createElement("canvas");
// draw something on the canvas
// …
const videoFrame = new VideoFrame(cnv, { timestamp: 0 });
console.log(videoFrame.colorSpace);