class js.html.VideoElement extends MediaElement

Available on js

DOM video objects expose the HTMLVideoElement interface, which provides special properties (beyond the regular element object and HTMLMediaElement interfaces they also have available to them by inheritance) for manipulating video objects.

Documentation for this class was provided by MDN.

Instance Fields

var height:Int

Reflects the

height HTML attribute, which specifies the height of the display area, in CSS pixels.

var poster:String

Reflects the

poster HTML attribute, which specifies an image to show while no video data is available.

var videoHeight:Int

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.

var videoWidth:Int

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.

var width:Int

Reflects the

width  HTML attribute, which specifies the width of the display area, in CSS pixels.

function exitFullScreen():Void

function exitFullscreen():Void