Class VideoElementFrameMonitor

Monitors a video element for first-frame rendering and ongoing FPS metrics.

Internally uses requestVideoFrameCallback when available (Chrome/Edge) and falls back to the 'resize' event for first-frame detection on other browsers. FPS tracking is only available when requestVideoFrameCallback is supported.

Constructors

Methods

Constructors

Methods

  • Start monitoring the given element with the given observer. Any previous monitoring is stopped first.

    Parameters

    • element: HTMLVideoElement
    • observer: VideoElementFrameObserver

    Returns void