MDN self-hosted library · e01.org

VideoPlaybackQuality: totalFrameDelay property

Media Source Extensions

Open notebook · 1 cells web-api-instance-property upstream source

Media Source Extensions

The VideoPlaybackQuality.totalFrameDelay read-only property returns a double containing the sum of the frame delay since the creation of the associated HTMLVideoElement. The frame delay is the difference between a frame's theoretical presentation time and its effective display time.

Value

A number.

Examples

const videoElt = document.getElementById("my_vid");
const quality = videoElt.getVideoPlaybackQuality();

alert(quality.totalFrameDelay);

Browser compatibility

See also

  • The HTMLVideoElement.getVideoPlaybackQuality() method for constructing and returning this interface.
  • MediaSource
  • SourceBuffer