docs.rodeo

MDN Web Docs mirror

VideoColorSpace

{{APIRef("WebCodecs API")}} {{AvailableInWorkers("window_and_dedicated")}} 

The VideoColorSpace interface of the {{domxref('WebCodecs API','','',' ')}}  represents the color space of a video.

Constructor

Instance properties

Instance methods

Examples

In the following example, colorSpace is a VideoColorSpace object returned from {{domxref("VideoFrame")}} . The object is then printed to the console.

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

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN