plainJS

Libraries / UI

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

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size57.1 KB minified, 15.7 KB gzipped (build/mediaelement.min.js)
LicenceMIT
Dependenciesglobal@^4.3.1, svg4everybody@^2.1.9
Last releasev7.1.0, November 2025
Last activity2026-05-12 (Active)
Stars8,293 on GitHub
Formatsclassic script (global mejs;MediaElement;HtmlMediaElement;onYouTubePlayerAPIReady)
CDN hits12.5 million a month on jsDelivr
npm downloads81,845 a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelement.min.js"
        integrity="sha384-TPqkTn5F9uVKz3riY1thKidkogKgtIIGh8a/8oWBel2iV0OlNgPCC+gXjIejYtVP" crossorigin="anonymous"></script>
Advertisement

Entry 81 in the directory. Facts refreshed monthly; last run 2026-10-30.