Firefox Tomorrow

web api instance property

VideoFrame: visibleRect property

View on MDN ↗

Available in workers

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

Value

A DOMRectReadOnly.

Examples

The following example prints the visibleRect to the console.

console.log(VideoFrame.visibleRect);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.