VideoElement
The HTMLVideoElement interface provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
Documentation HTMLVideoElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Instance Members
width: IntIs a DOMString that reflects the width HTML attribute, which specifies the width of the display area, in CSS pixels.
height: IntIs a DOMString that reflects the height HTML attribute, which specifies the height of the display area, in CSS pixels.
videoWidth: IntReturns an unsigned long containing the intrinsic width of the resource in CSS pixels, taking into account the dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the resource. If the element's ready state is HAVE_NOTHING, the value is 0.
videoHeight: IntReturns an unsigned long containing the intrinsic height of the resource in CSS pixels, taking into account the dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the resource. If the element's ready state is HAVE_NOTHING, the value is 0.
poster: StringIs a DOMString that reflects the poster HTML attribute, which specifies an image to show while no video data is available.
getVideoPlaybackQuality(): VideoPlaybackQualityReturns a VideoPlaybackQuality objects that contains the current playback metrics.
| Returns |
|---|
| VideoPlaybackQuality |