VideoFrame.visibleRect

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The visibleRect property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this VideoFrame.

Value

Examples

The following example prints the visibleRect to the console.

console.log(VideoFrame.visibleRect);

Specifications

Specification
WebCodecs
# dom-videoframe-visiblerect

Browser compatibility

BCD tables only load in the browser