--- title: Inline player docs-libs: [plyr] summary: Play HTML5, YouTube and Vimeo media with Plyr, a small accessible player styled with Tabler colors. description: Embed audio and video with a lightweight, accessible media player that supports HTML5, YouTube, and Vimeo sources. related: [/ui/components/carousel] --- import Example from '@components/Example.astro'; import { Code } from 'astro:components'; import TabsPackage from '@components/TabsPackage.astro'; import { site } from '@shared/lib/site.ts'; ## Overview The inline player is [Plyr](https://github.com/sampotts/plyr), a small media player for HTML5 video and audio, YouTube and Vimeo. It draws its own controls, which Tabler styles to match the rest of the UI, and it's keyboard accessible out of the box. ## Installation Install Plyr from npm: Or include it from a CDN. Plyr draws its own controls, so the stylesheet is required - without it the player falls back to the browser's native controls. `} /> ## YouTube video For a YouTube video, add a `div` with the provider and the video id, then create the player from it: