VideoFrame: displayWidth-Eigenschaft

Hinweis: Diese Funktion ist in Dedicated Web Workers verfügbar.

Die displayWidth-Eigenschaft des VideoFrame-Interfaces gibt die Breite des VideoFrame nach der Anwendung von Seitenverhältnis-Anpassungen zurück.

Wert

Ein Integer.

Beispiele

Das folgende Beispiel gibt die displayWidth in der Konsole aus.

js
console.log(VideoFrame.displayWidth);

Spezifikationen

Specification
WebCodecs
# dom-videoframe-displaywidth

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
displayWidth

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support