# Plyr A simple, accessible HTML5 media player. [Checkout the demo](http://plyr.io) ## Why? We wanted a lightweight, accessible and customisable media player that just supports *modern* browsers. Sure, there are many other players out there but we wanted to keep things simple, using the right elements for the job. ## Features - **Accessible** - full support for captions and screen readers. - **Lightweight** - just 4KB minified and gzipped. - **Customisable** - make the player look how you want with the markup you want. - **Semantic** - uses HTML5 form inputs for volume (range) and progress element for playback progress. - **No dependencies** - written in native JS. - **API** - easy to use API. - **Fallback** - if there's no support, the native players are used. - **Fullscreen** - options to run the player full browser or the user can toggle fullscreen. ## Planned development - Accept a string selector, a node, or a nodelist for the `container` property of `selectors`. - Accept a selector for the `html` template property. ## Implementation ### CSS If you want to use the default css, add the css file from /dist into your head, or even better use the less file included in /assets in your build to save a request. ```html ``` ### SVG The SVG sprite for the controls icons is loaded in by AJAX to help with performance. This is best added before the closing `` ```html ``` More info on SVG sprites here: [http://css-tricks.com/svg-sprites-use-better-icon-fonts/](http://css-tricks.com/svg-sprites-use-better-icon-fonts/) and the AJAX technique here: [http://css-tricks.com/ajaxing-svg-sprite/](http://css-tricks.com/ajaxing-svg-sprite/) ### HTML The only extra markup that's needed to use plyr is a `
` wrapper. Replace the source, poster and captions with urls for your media. ```html
``` And the same for `