Back to Content

VideoFrame: visibleRect property

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

latest503 B
Original Source

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

The visibleRect property of the {{domxref("VideoFrame")}} interface returns a {{domxref("DOMRectReadOnly")}} describing the visible rectangle of pixels for this VideoFrame.

Value

A {{domxref("DOMRectReadOnly")}}.

Examples

The following example prints the visibleRect to the console.

js
console.log(VideoFrame.visibleRect);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}