This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTMLVideoElement.getVideoPlaybackQuality() creates and returns a VideoPlaybackQuality object containing metrics about the current quality of the video restitution.


videoPQ = videoElement.getVideoPlaybackQuality();


var videoElt = document.getElementById('my_vid');
var quality = videoElt.getVideoPlaybackQuality();



Specification Status Comment
Media Source Extensions
The definition of 'HTMLVideoElement.getVideoPlaybackQuality()' in that specification.
Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support (Yes) 25.0 (25.0) [1][2] No support ? No support
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support (Yes) 25.0 (25.0) [1][2] No support ? No support

[1] Available after switching the about:config preference media.mediasource.enabled to true.
[2] Not available for WebRTC video streams.

See also

Document Tags and Contributors

 Contributors to this page: nmve, connor4312, libbymc, fscholz, teoli, kscarfone
 Last updated by: nmve,