MediaElement.js
HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.
Active2 dependenciesScript tagMIT
Facts
| Size | 57.1 KB minified, 15.7 KB gzipped (build/mediaelement.min.js) |
|---|---|
| Licence | MIT |
| Dependencies | global@^4.3.1, svg4everybody@^2.1.9 |
| Last release | v7.1.0, November 2025 |
| Last activity | 2026-05-12 (Active) |
| Stars | 8,293 on GitHub |
| Formats | classic script (global mejs;MediaElement;HtmlMediaElement;onYouTubePlayerAPIReady) |
| CDN hits | 12.5 million a month on jsDelivr |
| npm downloads | 81,845 a month |
| Gates | G1 failed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v7.1.0 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelement.min.js"
integrity="sha384-TPqkTn5F9uVKz3riY1thKidkogKgtIIGh8a/8oWBel2iV0OlNgPCC+gXjIejYtVP" crossorigin="anonymous"></script>Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 81 in the directory. Facts refreshed monthly; last run 2026-10-30.