Media playback qualityBaseline · Widely available
The getVideoPlaybackQuality() method of HTMLVideoElement returns metrics that can be used to determine the playback quality of a video, such as how many frames were dropped.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Feb 4, 2020. Widely available since Aug 4, 2022.
Browser support
DesktopChrome
1–79Not supported
80+Supportedsince Feb 4, 2020
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–41Not supported
42+Supportedsince Nov 3, 2015
Current: 157Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27MobileChrome Android
18–79Not supported
80+Supportedsince Feb 4, 2020
Current: 155Firefox Android
4–41Not supported
42+Supportedsince Nov 3, 2015
Current: 157Safari iOS
1–12Not supported
12.2+Supportedsince Mar 25, 2019
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: getVideoPlaybackQuality.
Feature detection
JS · check before using
if ("VideoPlaybackQuality" in globalThis) {
// VideoPlaybackQuality is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLVideoElement.getVideoPlaybackQuality | 80 | 12 | 42 | 8 | 80 | 42 | 12.2 |
| VideoPlaybackQuality | 23 | 12 | 42 | 8 | 25 | 42 | 12.2 |
| VideoPlaybackQuality.creationTime | 23 | 12 | 42 | 8 | 25 | 42 | 12.2 |
| VideoPlaybackQuality.droppedVideoFrames | 23 | 12 | 42 | 8 | 25 | 42 | 12.2 |
| VideoPlaybackQuality.totalVideoFrames | 23 | 12 | 42 | 8 | 25 | 42 | 12.2 |