HTMLVideoElement
扩展
构造函数
new HTMLVideoElement()
new HTMLVideoElement(): HTMLVideoElement
返回值
属性
width
width:
number
设置视频的显示宽度。有关更多信息,请参阅https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-width(仅提供英文版)。
height
height:
number
设置视频的显示高度。https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-height(仅提供英文版)。
videoWidth
readonlyvideoWidth:number
获取视频的宽度。有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth(仅提供英文版)。
videoHeight
readonlyvideoHeight:number
获取视频的高度。有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight(仅提供英文版)。
poster
poster:
string
playsInline
playsInline:
boolean
方法
getVideoPlaybackQuality()
abstractgetVideoPlaybackQuality():VideoPlaybackQuality
获取视频播放质量属性。有关更多信息,请参阅https://w3c.github.io/media-playback-quality/#dom-htmlvideoelement-getvideoplaybackquality(仅提供英文版)。
返回值
VideoPlaybackQuality
Last updated: 2026年7月22日

