This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use 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 spec changes.
The HTMLVideoElement.getVideoPlaybackQuality()
creates and returns a VideoPlaybackQuality
object containing metrics about the current quality of the video restitution.
SyntaxEdit
videoPQ = videoElement.getVideoPlaybackQuality();
ExampleEdit
var videoElt = document.getElementById("my_vid");
var quality = videoElt.getVideoPlaybackQuality();
alert(quality.creationTime);
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'HTMLVideoElement.getVideoPlaybackQuality()' in that specification. |
Working Draft | Initial definition. |
Browser compatibilityEdit
[1] Available after switching the about:config
preference media.mediasource.enabled
to true
.
See alsoEdit
- The
VideoPlaybackQuality
interface.