supervision-js
    Preparing search index...

    Type Alias MediaStreamPresentedFrame

    Renderer-neutral metadata for one frame the browser actually presented.

    mediaTime is on the same timeline the session reports, so a host can correlate transport-side results with what is on screen. Every other field is optional because browsers differ in what requestVideoFrameCallback reports; absent fields are normal and must not break rendering. No DOM element or vendor object is exposed.

    type MediaStreamPresentedFrame = {
        mediaTime: number;
        rtpTimestamp?: number;
        width?: number;
        height?: number;
        presentationTime?: number;
        expectedDisplayTime?: number;
    }
    Index
    mediaTime: number

    Presentation time on the session media timeline, in seconds.

    rtpTimestamp?: number

    RTP timestamp the sender stamped this frame with, when reported.

    width?: number

    Frame width in pixels, when reported.

    height?: number

    Frame height in pixels, when reported.

    presentationTime?: number

    performance.now() time the user agent submitted the frame, when reported.

    expectedDisplayTime?: number

    performance.now() time the frame is expected to be visible, when reported.