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.
The following example prints the visibleRect to the console.
console.log(VideoFrame.visibleRect);