VideoFrame: visibleRect property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available in Dedicated Web Workers.
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.
js
console.log(VideoFrame.visibleRect);
Specifications
Specification |
---|
WebCodecs # dom-videoframe-visiblerect |
Browser compatibility
BCD tables only load in the browser