<video>Baseline · Widely available
The <video> element plays videos or movies, optionally with controls provided by the browser.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.
Browser support
DesktopChrome
1–2Not supported
3+Supportedsince Sep 15, 2009
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–3Not supported
3.5+Supportedsince Jun 30, 2009
Current: 157Safari
1–3Not supported
3.1+Supportedsince Mar 18, 2008
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157Safari iOS
1–2Not supported
3+Supportedsince Jun 17, 2009
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: HTMLMediaElement.
Feature detection
JS · check before using
const el = document.createElement("video");
if (!(el instanceof HTMLUnknownElement)) {
// <video> is supported
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (78). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLMediaElement | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.abort_event | 3 | 12 | 9 | 3.1 | 18 | 9 | 3 |
| HTMLMediaElement.autoplay | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.buffered | 3 | 12 | 4 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.canPlayType | 3 | 12 | 3.5 | 4 | 18 | 4 | 3 |
| HTMLMediaElement.canplay_event | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.canplaythrough_event | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.controls | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.crossOrigin | 33 | 13 | 22 | 10 | 33 | 22 | 10 |
| HTMLMediaElement.currentSrc | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.currentTime | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.defaultMuted | 15 | 12 | 11 | 6 | 18 | 14 | 6 |
| HTMLMediaElement.defaultPlaybackRate | 3 | 12 | 20 | 3.1 | 18 | 20 | 3 |
| HTMLMediaElement.duration | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.durationchange_event | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.emptied_event | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.ended | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.ended_event | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.error | 3 | 12 | 3.5 | 3.1 | 18 | 4 | 3 |
| HTMLMediaElement.error_event | 3 | 12 | 6 | 3.1 | 18 | 6 | 3 |