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.
СпиÑок поддеÑживаемÑÑ ÑоÑмаÑов медиа ваÑÑиÑÑÑÑÑÑ Ð¸Ð· одного бÑаÑзеÑа в дÑÑгой. ÐÑ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð»Ð¸Ð±Ð¾ пÑедоÑÑавиÑÑ Ð²Ð°Ñе видео в одном ÑоÑмаÑе коÑоÑÑе поддеÑживаÑÑÑÑ Ð²Ñеми акÑÑалÑнÑми бÑаÑзеÑами, или пÑедоÑÑавиÑÑ Ð¼Ð½Ð¾Ð¶ÐµÑÑвеннÑе иÑÑоÑники видео в доÑÑаÑоÑно ÑазнÑÑ ÑоÑмаÑÐ°Ñ ÑÑÐ¾Ð±Ñ Ð²Ñе бÑаÑзеÑÑ ÐºÐ¾ÑоÑÑе вам нÑÐ¶Ð½Ñ Ð¿Ð¾Ð´Ð´ÐµÑживали Ð¸Ñ .
СвойÑÑва
Inherits properties from its parent, HTMLMediaElement, and HTMLElement.
HTMLVideoElement.height-
Is a
Stringthat reflects theheightHTML attribute, which specifies the height of the display area, in CSS pixels. HTMLVideoElement.poster-
Is a
Stringthat 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
Stringthat 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 > |
СовмеÑÑимоÑÑÑ Ñ Ð±ÑаÑзеÑами
СмоÑÑиÑе Ñакже
- HTML element implementing this interface:
<video>. - Demo of video paint statistics
- Supported media formats