VideoFrame: colorSpace-Eigenschaft
Hinweis: Diese Funktion ist in Dedicated Web Workers verfügbar.
Die colorSpace
-Eigenschaft des VideoFrame
-Interfaces gibt ein VideoColorSpace
-Objekt zurück, das den Farbraum des Videos repräsentiert.
Wert
Ein VideoColorSpace
-Objekt.
Beispiele
Das folgende Beispiel gibt die colorSpace
-Eigenschaft in der Konsole aus.
js
const cnv = document.createElement("canvas");
// draw something on the canvas
// ...
const videoFrame = new VideoFrame(cnv, { timestamp: 0 });
console.log(videoFrame.colorSpace);
Spezifikationen
Specification |
---|
WebCodecs # dom-videoframe-colorspace |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
colorSpace |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.