Get to know MDN better
Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Note: This feature is available in Dedicated Web Workers.
The VideoColorSpace() constructor creates a new VideoColorSpace object which represents a video color space.
All values default to null when they are not present.
options OptionalAn object containing the following:
primaries OptionalOne of the following strings:
One of the following strings:
One of the following strings:
A Boolean, true if full-range color values are used in the video.
The following example creates a new VideoColorSpace object with VideoColorSpace.primaries set to "bt709", and VideoColorSpace.primaries set to true.
| WebCodecs # dom-videocolorspace-videocolorspace |
Enable JavaScript to view this browser compatibility table.
This page was last modified on May 8, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.