JavaScripture
Contribute via GitHub Feedback

HTMLVideoElement : HTMLMediaElement

HTMLVideoElement is an element that displays a video. It corresponds to the <video> tag. See HTMLMediaElement for the properties, methods and events available on the video element.

Instance Properties

height : Number

The display height of the video. If no display size is specified, the videoHeight will be used.

Example:

Run

Results:

 

poster : String

The url of an image to display while the video is loading.

videoHeight : Number  

The height of the video data. The video may be displayed at a different size by setting width and height.

Example:

Run

Results:

 

videoWidth : Number  

The width of the video data. The video may be displayed at a different size by setting width and height.

Example:

Run

Results:

 

width : Number

The display width of the video. If no display size is specified, the videoWidth will be used.

Example:

Run

Results: