Inline player

A simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports modern browsers.

Sample demo

<div id="player-youtube" data-plyr-provider="youtube" data-plyr-embed-id="dQw4w9WgXcQ"></div>
<script>
  document.addEventListener("DOMContentLoaded", function () {
    window.Plyr && (new Plyr('#player-youtube'));
  });
</script>

Vimeo file

<div id="player-vimeo" data-plyr-provider="vimeo" data-plyr-embed-id="515937365"></div>
<script>
  document.addEventListener("DOMContentLoaded", function () {
    window.Plyr && (new Plyr('#player-vimeo'));
  });
</script>