VideoElement

EventTargetNodeDOMElementElementMediaElementjs.html.VideoElement (extern class)

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.

See:

Instance Members

width: Int

Is a DOMString that reflects the width HTML attribute, which specifies the width of the display area, in CSS pixels.


height: Int

Is a DOMString that reflects the height HTML attribute, which specifies the height of the display area, in CSS pixels.


videoWidth: Int

Returns 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: Int

Returns 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: String

Is a DOMString that reflects the poster HTML attribute, which specifies an image to show while no video data is available.


getVideoPlaybackQuality(): VideoPlaybackQuality

Returns a VideoPlaybackQuality objects that contains the current playback metrics.

Returns
VideoPlaybackQuality