JavaScript media player for HTML video and audio plus YouTube and Vimeo embeds. Project status is deprecated in favor of Video.js with security updates only.
Overview
Plyr enhances standard HTML5 media elements and progressive embeds for YouTube and Vimeo with a shared control UI and API. It targets modern browsers with an accessible control set, keyboard shortcuts, and responsive layouts.
Supported capabilities include captions, fullscreen, picture-in-picture, speed controls, multiple caption tracks, preview thumbnails, monetization hooks, and streaming playback via integrations such as hls.js, Shaka, and dash.js.
The player is written in vanilla ES6 without a framework dependency and can be loaded as an ES module, script tag, or npm package with a Sass-based stylesheet and SVG icon sprite.
Maintainers now direct new work to Video.js 10 after combining efforts with Vidstack and Media Chrome; Plyr remains available but receives security maintenance only.
Key features
- HTML5 video and audio
- YouTube and Vimeo embeds
- VTT captions and screen reader support
- Standardized playback API and events
- Fullscreen and picture-in-picture
- Adaptive streaming player hooks
- CSS custom property theming
- Keyboard shortcuts
Use cases
- Custom video players on websites
- Accessible media controls
- Embedded YouTube or Vimeo playback
- Sites needing unified player events