W3cubDocs

/DOM

HTMLVideoElement.getVideoPlaybackQuality

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.

Syntax

videoPQ = videoElement.getVideoPlaybackQuality();

Example

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

alert(quality.creationTime);

Specifications

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

Browser compatibility

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

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality