| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace | [Back] [Original] |
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.
Want more browser support for this feature? Tell us why.
Note: This feature is available in Dedicated Web Workers.
The VideoColorSpace interface of the WebCodecs API represents the color space of a video.
VideoColorSpace()Creates a new VideoColorSpace object.
VideoColorSpace.primaries Read onlyA string containing the color primary describing the color gamut of a video sample.
VideoColorSpace.transferA string containing the transfer characteristics of video samples.
VideoColorSpace.matrixA string containing the matrix coefficients describing the relationship between sample component values and color coordinates.
VideoColorSpace.fullRangeA Boolean. If true indicates that full-range color values are used.
VideoColorSpace.toJSON()Returns a JSON representation of the VideoColorSpace object.
In the following example, colorSpace is a VideoColorSpace object returned from VideoFrame. The object is then printed to the console.
let colorSpace = VideoFrame.colorSpace;
console.log(colorSpace);
| Specification |
|---|
| WebCodecs # videocolorspace |
This page was last modified on May 8, 2024 by MDN contributors.
VideoColorSpaceYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |