Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
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.
Список поддерживаемых форматов медиа варьируются из одного браузера в другой. Вы должны либо предоставить ваше видео в одном формате которые поддерживаются всеми актуальными браузерами, или предоставить множественные источники видео в достаточно разных форматах чтобы все браузеры которые вам нужны поддерживали их.
EventTarget Node Element HTMLElement HTMLMediaElement HTMLVideoElementInherits properties from its parent, HTMLMediaElement, and HTMLElement.
HTMLVideoElement.heightIs a DOMString that reflects the height HTML attribute, which specifies the height of the display area, in CSS pixels.
HTMLVideoElement.posterIs a DOMString that reflects the poster HTML attribute, which specifies an image to show while no video data is available.
HTMLVideoElement.videoHeight Только для чтенияReturns an unsigned long containing 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 is HAVE_NOTHING, the value is 0.
HTMLVideoElement.videoWidth Только для чтенияReturns an unsigned long containing 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 is HAVE_NOTHING, the value is 0.
HTMLVideoElement.widthIs a DOMString that reflects the width HTML attribute, which specifies the width of the display area, in CSS pixels.
Returns an unsigned long with the count of video frames that have been parsed from the media resource.
HTMLVideoElement.mozDecodedFrames Только для чтенияReturns an unsigned long with the count of parsed video frames that have been decoded into images.
HTMLVideoElement.mozPresentedFrames Только для чтенияReturns an unsigned long with the count of decoded frames that have been presented to the rendering pipeline for painting.
HTMLVideoElement.mozPaintedFrames Только для чтенияReturns an unsigned long with the count of presented frames which were painted on the screen.
HTMLVideoElement.mozFrameDelay Только для чтенияReturns an double with the time which the last painted video frame was late by, in seconds.
HTMLVideoElement.mozHasAudio Только для чтенияReturns a Boolean indicating if there is some audio associated with the video.
Inherits methods from its parent, HTMLMediaElement, and HTMLElement.
HTMLVideoElement.getVideoPlaybackQuality()Returns a VideoPlaybackQuality objects that contains the current playback metrics.
| HTML # htmlvideoelement |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 9 апр. 2026 г. by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.