docs.rodeo

MDN Web Docs mirror

HTMLVideoElement

{{APIRef("HTML DOM")}} 

Implemented by the {{HTMLElement("video")}}  element, the HTMLVideoElement interface provides special properties and methods for manipulating video objects. It also inherits properties and methods of {{domxref("HTMLMediaElement")}}  and {{domxref("HTMLElement")}} .

The list of supported media formats varies from one browser to the other. You should either provide your video in a single format that all the relevant browsers supports, or provide multiple video sources in enough different formats that all the browsers you need to support are covered.

{{InheritanceDiagram}} 

Instance properties

Inherits properties from its parent interface, {{domxref("HTMLMediaElement")}} , and {{domxref("HTMLElement")}} .

Firefox-specific properties

Instance methods

Inherits methods from its parent interface, {{domxref("HTMLMediaElement")}} , and {{domxref("HTMLElement")}} .

Events

Inherits events from its parent interface, {{domxref("HTMLMediaElement")}} , and {{domxref("HTMLElement")}} .

Listen to these events using {{domxref("EventTarget.addEventListener", "addEventListener()")}}  or by assigning an event listener to the oneventname property of this interface.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN