W3cubDocs

/DOM

HTMLVideoElement.getVideoPlaybackQuality

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

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–2017 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