HTMLVideoElement
Extends
Constructors
new HTMLVideoElement()
new HTMLVideoElement(): HTMLVideoElement
Returns
Properties
width
width:
number
Sets the display width of the video. For additional information, see https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-width.
height
height:
number
Sets the display height of the video. https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-height.
videoWidth
readonlyvideoWidth:number
Gets the width of the video. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth.
videoHeight
readonlyvideoHeight:number
Gets the height of the video. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight.
poster
poster:
string
playsInline
playsInline:
boolean
Methods
getVideoPlaybackQuality()
abstractgetVideoPlaybackQuality():VideoPlaybackQuality
Get video playback quality attributes. For additional information, see https://w3c.github.io/media-playback-quality/#dom-htmlvideoelement-getvideoplaybackquality.
Returns
VideoPlaybackQuality
Last updated: Jul 22, 2026

