This page was translated from English by the community. Learn more and join the MDN Web Docs community.
HTMLVideoElement
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..
* Some parts of this feature may have varying levels of support.
HTMLVideoElement интерфейс предоставляет специальные свойства и методы для манипулирования видео объектов. Он также наследует свойства и методы HTMLMediaElement и HTMLElement.
Список поддерживаемых форматов медиа варьируются из одного браузера в другой. Вы должны либо предоставить ваше видео в одном формате которые поддерживаются всеми актуальными браузерами, или предоставить множественные источники видео в достаточно разных форматах чтобы все браузеры которые вам нужны поддерживали их.
must be a stringСвойства
Inherits properties from its parent, HTMLMediaElement, and HTMLElement.
HTMLVideoElement.height-
Is a
DOMStringthat reflects theheightHTML attribute, which specifies the height of the display area, in CSS pixels. HTMLVideoElement.poster-
Is a
DOMStringthat reflects theposterHTML attribute, which specifies an image to show while no video data is available. HTMLVideoElement.videoHeightТолько для чтения-
Returns an
unsigned longcontaining 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 isHAVE_NOTHING, the value is0. HTMLVideoElement.videoWidthТолько для чтения-
Returns an
unsigned longcontaining 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 isHAVE_NOTHING, the value is0. HTMLVideoElement.width-
Is a
DOMStringthat reflects thewidthHTML attribute, which specifies the width of the display area, in CSS pixels.
Gecko-специфичные свойства
HTMLVideoElement.mozParsedFramesТолько для чтения Не стандартно-
Returns an
unsigned longwith the count of video frames that have been parsed from the media resource. HTMLVideoElement.mozDecodedFramesТолько для чтения Не стандартно-
Returns an
unsigned longwith the count of parsed video frames that have been decoded into images. HTMLVideoElement.mozPresentedFramesТолько для чтения Не стандартно-
Returns an
unsigned longwith the count of decoded frames that have been presented to the rendering pipeline for painting. HTMLVideoElement.mozPaintedFramesТолько для чтения Не стандартно-
Returns an
unsigned longwith the count of presented frames which were painted on the screen. HTMLVideoElement.mozFrameDelayТолько для чтения Не стандартно-
Returns an
doublewith the time which the last painted video frame was late by, in seconds. HTMLVideoElement.mozHasAudioТолько для чтения Не стандартно-
Returns a
Booleanindicating if there is some audio associated with the video.
Методы
Inherits methods from its parent, HTMLMediaElement, and HTMLElement.
HTMLVideoElement.getVideoPlaybackQuality()Экспериментальная возможность-
Returns a
VideoPlaybackQualityobjects that contains the current playback metrics.
Спецификации
| Specification |
|---|
| HTML> # htmlvideoelement> |
Совместимость с браузерами
Loading...
Смотрите также
- HTML element implementing this interface:
<video>. - Demo of video paint statistics
- Supported media formats