GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — VideoColorSpace - Web APIs | MDN

VideoColorSpace

Baseline 2024
Newly available

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.

  • See full compatibility
  • Learn more

Note: This feature is available in Dedicated Web Workers.

The VideoColorSpace interface of the WebCodecs API represents the color space of a video.

Constructor

VideoColorSpace()

Creates a new VideoColorSpace object.

Instance properties

VideoColorSpace.primaries Read only

A string containing the color primary describing the color gamut of a video sample.

VideoColorSpace.transfer Read only

A string containing the transfer characteristics of video samples.

VideoColorSpace.matrix Read only

A string containing the matrix coefficients describing the relationship between sample component values and color coordinates.

VideoColorSpace.fullRange Read only

A Boolean. If true indicates that full-range color values are used.

Instance methods

VideoColorSpace.toJSON()

Returns a JSON-serializable plain object representing the VideoColorSpace object. Automatically called by JSON.stringify().

Examples

In the following example, colorSpace is a VideoColorSpace object returned from VideoFrame. The object is then printed to the console.

js
let colorSpace = VideoFrame.colorSpace;
console.log(colorSpace);

Specifications

Specification
WebCodecs
# videocolorspace

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on Oct 5, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.