VideoColorSpace: toJSON()-Methode
Hinweis: Diese Funktion ist in Dedicated Web Workers verfügbar.
Die toJSON()
-Methode der VideoColorSpace
-Schnittstelle ist ein Serializer, der eine JSON-Darstellung des VideoColorSpace
-Objekts zurückgibt.
Syntax
js
toJSON()
Parameter
Keine.
Rückgabewert
Ein JSON-Objekt.
Beispiele
Im folgenden Beispiel ist colorSpace
ein VideoColorSpace
-Objekt, das von VideoFrame
zurückgegeben wird. Dieses Objekt wird dann als JSON in die Konsole ausgegeben.
js
let colorSpace = VideoFrame.colorSpace;
console.log(colorSpace.toJSON());
Spezifikationen
Specification |
---|
WebCodecs # dom-videocolorspace-tojson |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
toJSON |
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.