Back to Content

VideoFrame: displayHeight property

files/en-us/web/api/videoframe/displayheight/index.md

latest460 B
Original Source

{{APIRef("Web Codecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The displayHeight property of the {{domxref("VideoFrame")}} interface returns the height of the VideoFrame after applying aspect ratio adjustments.

Value

An integer.

Examples

The following example prints the displayHeight to the console.

js
console.log(VideoFrame.displayHeight);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}