---
title: Inline player
libs: plyr
summary: A simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports modern browsers.
description: Lightweight media player for websites.
---

## Sample demo

```html example vendors height="500px" libs="plyr"
<div id="player-youtube" data-plyr-provider="youtube" data-plyr-embed-id="dQw4w9WgXcQ"></div>

<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
<script>
  document.addEventListener("DOMContentLoaded", function() {
    window.Plyr && (new Plyr('#player-youtube'));
  });
</script>
```

## Vimeo file

```html example vendors height="500px" libs="plyr"
<div id="player-vimeo" data-plyr-provider="vimeo" data-plyr-embed-id="515937365"></div>

<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
<script>
  document.addEventListener("DOMContentLoaded", function() {
    window.Plyr && (new Plyr('#player-vimeo'));
  });
</script>
```
