as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

HTMLVideoElement

HTMLVideoElement

扩展

构造函数

new HTMLVideoElement()

new HTMLVideoElement(): 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

readonly videoWidth: number

获取视频的宽度。有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth(仅提供英文版)。


videoHeight

readonly videoHeight: number

获取视频的高度。有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight(仅提供英文版)。


poster

poster: string


playsInline

playsInline: boolean

方法

getVideoPlaybackQuality()

abstract getVideoPlaybackQuality(): VideoPlaybackQuality

获取视频播放质量属性。有关更多信息,请参阅https://w3c.github.io/media-playback-quality/#dom-htmlvideoelement-getvideoplaybackquality(仅提供英文版)。

返回值

VideoPlaybackQuality


Last updated: 2026年7月22日