[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2873":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},2873,"plyr","sampotts\u002Fplyr","sampotts","A simple HTML5, YouTube and Vimeo player","https:\u002F\u002Fplyr.io",null,"JavaScript",29846,3110,424,894,0,3,17,87,14,45,"MIT License",false,"master",[26,27,5,28,29],"html5-video","javascript","vimeo","youtube","2026-06-12 02:00:44","Plyr is a simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports [_modern_](#browser-support) browsers.\n\n[Checkout the demo](https:\u002F\u002Fplyr.io) - [Donate](#donate) - [Slack](https:\u002F\u002Fbit.ly\u002Fplyr--chat) - [Video hosting](https:\u002F\u002Fmux.com?ref=plyr-github)\n\n[![npm version](https:\u002F\u002Fbadge.fury.io\u002Fjs\u002Fplyr.svg)](https:\u002F\u002Fbadge.fury.io\u002Fjs\u002Fplyr) [![Gitpod Ready-to-Code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitpod-Ready--to--Code-blue?logo=gitpod)](https:\u002F\u002Fgitpod.io\u002F#https:\u002F\u002Fgithub.com\u002Fsampotts\u002Fplyr) [![Financial Contributors on Open Collective](https:\u002F\u002Fopencollective.com\u002Fplyr\u002Fall\u002Fbadge.svg?label=financial+contributors)](https:\u002F\u002Fopencollective.com\u002Fplyr)\n\n[![Screenshot of Plyr](https:\u002F\u002Fcdn.plyr.io\u002Fstatic\u002Fscreenshot.webp)](https:\u002F\u002Fplyr.io)\n\n# Features\n\n- 📼 **HTML Video & Audio, YouTube & Vimeo** - support for the major formats\n- 💪 **Accessible** - full support for VTT captions and screen readers\n- 🔧 **[Customizable](#html)** - make the player look how you want with the markup you want\n- 😎 **Clean HTML** - uses the _right_ elements. `\u003Cinput type=\"range\">` for volume and `\u003Cprogress>` for progress and well, `\u003Cbutton>`s for buttons. There's no\n  `\u003Cspan>` or `\u003Ca href=\"#\">` button hacks\n- 📱 **Responsive** - works with any screen size\n- 💵 **[Monetization](#ads)** - make money from your videos\n- 📹 **[Streaming](#demos)** - support for hls.js, Shaka and dash.js streaming playback\n- 🎛 **[API](#api)** - toggle playback, volume, seeking, and more through a standardized API\n- 🎤 **[Events](#events)** - no messing around with Vimeo and YouTube APIs, all events are standardized across formats\n- 🔎 **[Fullscreen](#fullscreen)** - supports native fullscreen with fallback to \"full window\" modes\n- ⌨️ **[Shortcuts](#shortcuts)** - supports keyboard shortcuts\n- 🖥 **Picture-in-Picture** - supports picture-in-picture mode\n- 📱 **Playsinline** - supports the `playsinline` attribute\n- 🏎 **Speed controls** - adjust speed on the fly\n- 📖 **Multiple captions** - support for multiple caption tracks\n- 🌎 **i18n support** - support for internationalization of controls\n- 👌 **[Preview thumbnails](#preview-thumbnails)** - support for displaying preview thumbnails\n- 🤟 **No frameworks** - written in \"vanilla\" ES6 JavaScript, no jQuery required\n- 💁‍♀️ **Sass** - to include in your build processes\n\n## Demos\n\nYou can try Plyr in Codepen using our minimal templates: [HTML5 video](https:\u002F\u002Fcodepen.io\u002Fpen?template=bKeqpr), [HTML5 audio](https:\u002F\u002Fcodepen.io\u002Fpen?template=rKLywR), [YouTube](https:\u002F\u002Fcodepen.io\u002Fpen?template=GGqbbJ), [Vimeo](https:\u002F\u002Fcodepen.io\u002Fpen?template=bKeXNq). For Streaming we also have example integrations with: [Dash.js](https:\u002F\u002Fcodepen.io\u002Fpen?template=GRoogML), [Hls.js](https:\u002F\u002Fcodepen.io\u002Fpen?template=oyLKQb) and [Shaka Player](https:\u002F\u002Fcodepen.io\u002Fpen?template=ZRpzZO)\n\n# Quick setup\n\n## HTML\n\nPlyr extends upon the standard [HTML5 media element](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FHTMLMediaElement) markup so that's all you need for those types.\n\n### HTML5 Video\n\n```html\n\u003Cvideo id=\"player\" playsinline controls data-poster=\"\u002Fpath\u002Fto\u002Fposter.jpg\">\n  \u003Csource src=\"\u002Fpath\u002Fto\u002Fvideo.mp4\" type=\"video\u002Fmp4\" \u002F>\n  \u003Csource src=\"\u002Fpath\u002Fto\u002Fvideo.webm\" type=\"video\u002Fwebm\" \u002F>\n\n  \u003C!-- Captions are optional -->\n  \u003Ctrack kind=\"captions\" label=\"English captions\" src=\"\u002Fpath\u002Fto\u002Fcaptions.vtt\" srclang=\"en\" default \u002F>\n\u003C\u002Fvideo>\n```\n\n**Note**: The poster image should be specified using `data-poster`. This is to prevent it [being downloaded twice](https:\u002F\u002Fgithub.com\u002Fsampotts\u002Fplyr\u002Fissues\u002F1531). If you're sure the image will be cached, you can still use the `poster` attribute for true progressive enhancement.\n\n### HTML5 Audio\n\n```html\n\u003Caudio id=\"player\" controls>\n  \u003Csource src=\"\u002Fpath\u002Fto\u002Faudio.mp3\" type=\"audio\u002Fmp3\" \u002F>\n  \u003Csource src=\"\u002Fpath\u002Fto\u002Faudio.ogg\" type=\"audio\u002Fogg\" \u002F>\n\u003C\u002Faudio>\n```\n\nFor YouTube and Vimeo players, Plyr uses progressive enhancement to enhance the default `\u003Ciframe>` embeds. Below are some examples. The `plyr__video-embed` classname will make the embed responsive. You can add the `autoplay`, `loop`, `hl` (YouTube only) and `playsinline` (YouTube only) query parameters to the URL and they will be set as config options automatically. For YouTube, the `origin` should be updated to reflect the domain you're hosting the embed on, or you can opt to omit it.\n\n### YouTube\n\nWe recommend [progressive enhancement](https:\u002F\u002Fwww.smashingmagazine.com\u002F2009\u002F04\u002Fprogressive-enhancement-what-it-is-and-how-to-use-it\u002F) with the embedded players. You can elect to use an `\u003Ciframe>` as the source element (which Plyr will progressively enhance) or a bog standard `\u003Cdiv>` with two essential data attributes - `data-plyr-provider` and `data-plyr-embed-id`.\n\n```html\n\u003Cdiv class=\"plyr__video-embed\" id=\"player\">\n  \u003Ciframe\n    src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FbTqVqk7FSmY?origin=https:\u002F\u002Fplyr.io&amp;iv_load_policy=3&amp;modestbranding=1&amp;playsinline=1&amp;showinfo=0&amp;rel=0&amp;enablejsapi=1\"\n    allowfullscreen\n    allowtransparency\n    allow=\"autoplay\"\n  >\u003C\u002Fiframe>\n\u003C\u002Fdiv>\n```\n\n_Note_: The `plyr__video-embed` classname will make the player a responsive 16:9 (most common) iframe embed. When plyr itself kicks in, your custom `ratio` config option will be used.\n\nOr the `\u003Cdiv>` non progressively enhanced method:\n\n```html\n\u003Cdiv id=\"player\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"bTqVqk7FSmY\">\u003C\u002Fdiv>\n```\n\n_Note_: The `data-plyr-embed-id` can either be the video ID or URL for the media.\n\n### Vimeo\n\nMuch the same as YouTube above.\n\n```html\n\u003Cdiv class=\"plyr__video-embed\" id=\"player\">\n  \u003Ciframe\n    src=\"https:\u002F\u002Fplayer.vimeo.com\u002Fvideo\u002F76979871?loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media\"\n    allowfullscreen\n    allowtransparency\n    allow=\"autoplay\"\n  >\u003C\u002Fiframe>\n\u003C\u002Fdiv>\n```\n\nOr the `\u003Cdiv>` non progressively enhanced method:\n\n```html\n\u003Cdiv id=\"player\" data-plyr-provider=\"vimeo\" data-plyr-embed-id=\"76979871\">\u003C\u002Fdiv>\n```\n\n## JavaScript\n\nYou can use Plyr as an ES6 module as follows:\n\n```js\nimport Plyr from 'plyr';\n\nconst player = new Plyr('#player');\n```\n\nAlternatively you can include the `plyr.js` script before the closing `\u003C\u002Fbody>` tag and then in your JS create a new instance of Plyr as below.\n\n```html\n\u003Cscript src=\"path\u002Fto\u002Fplyr.js\">\u003C\u002Fscript>\n\u003Cscript>\n  const player = new Plyr('#player');\n\u003C\u002Fscript>\n```\n\nSee [initialising](#initializing) for more information on advanced setups.\n\nYou can use our CDN (provided by [Cloudflare](https:\u002F\u002Fwww.cloudflare.com\u002F)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills separately as part of your application but to make life easier you can use the polyfilled build.\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fcdn.plyr.io\u002F3.8.4\u002Fplyr.js\">\u003C\u002Fscript>\n```\n\n...or...\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fcdn.plyr.io\u002F3.8.4\u002Fplyr.polyfilled.js\">\u003C\u002Fscript>\n```\n\n## CSS\n\nInclude the `plyr.css` stylesheet into your `\u003Chead>`.\n\n```html\n\u003Clink rel=\"stylesheet\" href=\"path\u002Fto\u002Fplyr.css\" \u002F>\n```\n\nIf you want to use our CDN (provided by [Cloudflare](https:\u002F\u002Fwww.cloudflare.com\u002F)) for the default CSS, you can use the following:\n\n```html\n\u003Clink rel=\"stylesheet\" href=\"https:\u002F\u002Fcdn.plyr.io\u002F3.8.4\u002Fplyr.css\" \u002F>\n```\n\n## SVG Sprite\n\nThe SVG sprite is loaded automatically from our CDN (provided by [Cloudflare](https:\u002F\u002Fwww.cloudflare.com\u002F)). To change this, see the [options](#options) below. For\nreference, the CDN hosted SVG sprite can be found at `https:\u002F\u002Fcdn.plyr.io\u002F3.8.4\u002Fplyr.svg`.\n\n### Self hosting\n\nIf you don't want to create a build system to include Plyr as an npm module, you can use the pre-built files. You have a few options:\n\n- Download the files from the CDN links above, they're already minified.\n- Download the files from [unpkg](https:\u002F\u002Funpkg.com\u002Fbrowse\u002Fplyr\u002Fdist\u002F) or similar services.\n- Build the project yourself using `npm i && npm run build`, which installs the dependencies and spits out a build to `dist`.\n\n# Ads\n\nPlyr has partnered up with [vi.ai](https:\u002F\u002Fvi.ai\u002Fpublisher-video-monetization\u002F?aid=plyrio) to offer monetization options for your videos. Getting setup is easy:\n\n- [Sign up for a vi.ai account](https:\u002F\u002Fvi.ai\u002Fpublisher-video-monetization\u002F?aid=plyrio)\n- Grab your publisher ID from the code snippet\n- Enable ads in the [config options](#options) and enter your publisher ID\n\nAny questions regarding the ads can be sent straight to vi.ai and any issues with rendering raised through GitHub issues.\n\nIf you do not wish to use Vi, you can set your own `ads.tagUrl` [option](#options).\n\n# Advanced\n\n## Customizing the CSS\n\nIf you want to change any design tokens used for the rendering of the player, you can do so using [CSS Custom Properties](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FCSS\u002FUsing_CSS_custom_properties).\n\nHere's a list of the properties and what they are used for:\n\n| Name                                           | Description                                                                                             | Default \u002F Fallback                                                    |\n| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |\n| `--plyr-color-main`                            | The primary UI color.                                                                                   | ![#f03c15](https:\u002F\u002Fplace-hold.it\u002F15\u002F00b3ff\u002F000000?text=+) `#00b3ff`   |\n| `--plyr-video-background`                      | The background color of video and poster wrappers for using alpha channel videos and poster images.     | `rgba(0, 0, 0, 1)`                                                    |\n| `--plyr-focus-visible-color`                   | The color used for the focus styles when an element is `:focus-visible` (keyboard focused).             | `--plyr-color-main`                                                   |\n| `--plyr-badge-background`                      | The background color for badges in the menu.                                                            | ![#4a5464](https:\u002F\u002Fplace-hold.it\u002F15\u002F4a5464\u002F000000?text=+) `#4a5464`   |\n| `--plyr-badge-text-color`                      | The text color for badges.                                                                              | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-badge-border-radius`                   | The border radius used for badges.                                                                      | `2px`                                                                 |\n| `--plyr-captions-background`                   | The color for the background of captions.                                                               | `rgba(0, 0, 0, 0.8)`                                                  |\n| `--plyr-captions-text-color`                   | The color used for the captions text.                                                                   | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-control-icon-size`                     | The size of the icons used in the controls.                                                             | `18px`                                                                |\n| `--plyr-control-spacing`                       | The space between controls (sometimes used in a multiple - e.g. `10px \u002F 2 = 5px`).                      | `10px`                                                                |\n| `--plyr-control-padding`                       | The padding inside controls.                                                                            | `--plyr-control-spacing * 0.7` (`7px`)                                |\n| `--plyr-control-radius`                        | The border radius used on controls.                                                                     | `3px`                                                                 |\n| `--plyr-control-toggle-checked-background`     | The background color used for checked menu items.                                                       | `--plyr-color-main`                                                   |\n| `--plyr-video-controls-background`             | The background for the video controls.                                                                  | `linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))`              |\n| `--plyr-video-control-color`                   | The text\u002Ficon color for video controls.                                                                 | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-video-control-color-hover`             | The text\u002Ficon color used when video controls are `:hover`, `:focus` and `:focus-visible` (equivalent).  | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-video-control-background-hover`        | The background color used when video controls are `:hover`, `:focus` and `:focus-visible` (equivalent). | `--plyr-color-main`                                                   |\n| `--plyr-audio-controls-background`             | The background for the audio controls.                                                                  | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-audio-control-color`                   | The text\u002Ficon color for audio controls.                                                                 | ![#4a5464](https:\u002F\u002Fplace-hold.it\u002F15\u002F4a5464\u002F000000?text=+) `#4a5464`   |\n| `--plyr-audio-control-color-hover`             | The text\u002Ficon color used when audio controls are `:hover`, `:focus` and `:focus-visible` (equivalent).  | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-audio-control-background-hover`        | The background color used when video controls are `:hover`, `:focus` and `:focus-visible` (equivalent). | `--plyr-color-main`                                                   |\n| `--plyr-menu-background`                       | The background color for menus.                                                                         | `rgba(255, 255, 255, 0.9)`                                            |\n| `--plyr-menu-color`                            | The text\u002Ficon color for menu items.                                                                     | ![#4a5464](https:\u002F\u002Fplace-hold.it\u002F15\u002F4a5464\u002F000000?text=+) `#4a5464`   |\n| `--plyr-menu-shadow`                           | The shadow used on menus.                                                                               | `0 1px 2px rgba(0, 0, 0, 0.15)`                                       |\n| `--plyr-menu-radius`                           | The border radius on the menu.                                                                          | `4px`                                                                 |\n| `--plyr-menu-arrow-size`                       | The size of the arrow on the bottom of the menu.                                                        | `6px`                                                                 |\n| `--plyr-menu-item-arrow-color`                 | The color of the arrows in the menu.                                                                    | ![#728197](https:\u002F\u002Fplace-hold.it\u002F15\u002F728197\u002F000000?text=+) `#728197`   |\n| `--plyr-menu-item-arrow-size`                  | The size of the arrows in the menu.                                                                     | `4px`                                                                 |\n| `--plyr-menu-border-color`                     | The border color for the bottom of the back button in the top of the sub menu pages.                    | ![#dcdfe5](https:\u002F\u002Fplace-hold.it\u002F15\u002Fdcdfe5\u002F000000?text=+) `#dcdfe5`   |\n| `--plyr-menu-border-shadow-color`              | The shadow below the border of the back button in the top of the sub menu pages.                        | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-progress-loading-size`                 | The size of the stripes in the loading state in the scrubber.                                           | `25px`                                                                |\n| `--plyr-progress-loading-background`           | The background color on the loading state in the scrubber.                                              | `rgba(35, 40, 47, 0.6)`                                               |\n| `--plyr-video-progress-buffered-background`    | The fill color for the buffer indication in the scrubber for video.                                     | `rgba(255, 255, 255, 0.25)`                                           |\n| `--plyr-audio-progress-buffered-background`    | The fill color for the buffer indication in the scrubber for audio.                                     | `rgba(193, 200, 209, 0.6)`                                            |\n| `--plyr-range-thumb-height`                    | The height of the scrubber handle\u002Fthumb.                                                                | `13px`                                                                |\n| `--plyr-range-thumb-background`                | The background of the scrubber handle\u002Fthumb.                                                            | ![#ffffff](https:\u002F\u002Fplace-hold.it\u002F15\u002Fffffff\u002F000000?text=+) `#ffffff`   |\n| `--plyr-range-thumb-shadow`                    | The shadow of the scrubber handle\u002Fthumb.                                                                | `0 1px 1px rgba(215, 26, 18, 0.15), 0 0 0 1px rgba(215, 26, 18, 0.2)` |\n| `--plyr-range-thumb-active-shadow-width`       | The width of the shadow when the scrubber handle\u002Fthumb is `:active` (pressed).                          | `3px`                                                                 |\n| `--plyr-range-track-height`                    | The height of the scrubber\u002Fprogress track.                                                              | `5px`                                                                 |\n| `--plyr-range-fill-background`                 | The fill color of the scrubber\u002Fprogress.                                                                | `--plyr-color-main`                                                   |\n| `--plyr-video-range-track-background`          | The background of the scrubber\u002Fprogress.                                                                | `--plyr-video-progress-buffered-background`                           |\n| `--plyr-video-range-thumb-active-shadow-color` | The color of the shadow when the video scrubber handle\u002Fthumb is `:active` (pressed).                    | `rgba(255, 255, 255, 0.5)`                                            |\n| `--plyr-audio-range-track-background`          | The background of the scrubber\u002Fprogress.                                                                | `--plyr-video-progress-buffered-background`                           |\n| `--plyr-audio-range-thumb-active-shadow-color` | The color of the shadow when the audio scrubber handle\u002Fthumb is `:active` (pressed).                    | `rgba(215, 26, 18, 0.1)`                                              |\n| `--plyr-tooltip-background`                    | The background color for tooltips.                                                                      | `rgba(255, 255, 255, 0.9)`                                            |\n| `--plyr-tooltip-color`                         | The text color for tooltips.                                                                            | ![#4a5464](https:\u002F\u002Fplace-hold.it\u002F15\u002F4a5464\u002F000000?text=+) `#4a5464`   |\n| `--plyr-tooltip-padding`                       | The padding for tooltips.                                                                               | `calc(var(--plyr-control-spacing) \u002F 2))`                              |\n| `--plyr-tooltip-arrow-size`                    | The size of the arrow under tooltips.                                                                   | `4px`                                                                 |\n| `--plyr-tooltip-radius`                        | The border radius on tooltips.                                                                          | `3px`                                                                 |\n| `--plyr-tooltip-shadow`                        | The shadow on tooltips.                                                                                 | `0 1px 2px rgba(0, 0, 0, 0.15)`                                       |\n| `--plyr-font-family`                           | The font family used in the player.                                                                     |                                                                       |\n| `--plyr-font-size-base`                        | The base font size. Mainly used for captions.                                                           | `15px`                                                                |\n| `--plyr-font-size-small`                       | The smaller font size. Mainly used for captions.                                                        | `13px`                                                                |\n| `--plyr-font-size-large`                       | The larger font size. Mainly used for captions.                                                         | `18px`                                                                |\n| `--plyr-font-size-xlarge`                      | The even larger font size. Mainly used for captions.                                                    | `21px`                                                                |\n| `--plyr-font-size-time`                        | The font size for the time.                                                                             | `--plyr-font-size-small`                                              |\n| `--plyr-font-size-menu`                        | The font size used in the menu.                                                                         | `--plyr-font-size-small`                                              |\n| `--plyr-font-size-badge`                       | The font size used for badges.                                                                          | `9px`                                                                 |\n| `--plyr-font-weight-regular`                   | The regular font weight.                                                                                | `400`                                                                 |\n| `--plyr-font-weight-bold`                      | The bold font weight.                                                                                   | `600`                                                                 |\n| `--plyr-line-height`                           | The line height used within the player.                                                                 | `1.7`                                                                 |\n| `--plyr-font-smoothing`                        | Whether to enable font antialiasing within the player.                                                  | `false`                                                               |\n\nYou can set them in your CSS for all players:\n\n```css\n:root {\n  --plyr-color-main: #1ac266;\n}\n```\n\n...or for a specific class name:\n\n```css\n.player {\n  --plyr-color-main: #1ac266;\n}\n```\n\n...or in your HTML:\n\n```html\n\u003Cvideo class=\"player\" style=\"--plyr-color-main: #1ac266;\">...\u003C\u002Fvideo>\n```\n\n### Sass\n\nYou can use `plyr.scss` file included in `\u002Fsrc\u002Fsass` as part of your build and change variables to suit your design. The Sass requires you to\nuse [autoprefixer](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgulp-autoprefixer) (you should be already!) as all declarations use the W3C definitions.\n\nThe HTML markup uses the BEM methodology with `plyr` as the block, e.g. `.plyr__controls`. You can change the class hooks in the options to match any custom CSS\nyou write. Check out the JavaScript source for more on this.\n\n## SVG\n\nThe icons used in the Plyr controls are loaded in an SVG sprite. The sprite is automatically loaded from our CDN by default. If you already have an icon build\nsystem in place, you can include the source plyr icons (see `\u002Fsrc\u002Fsprite` for source icons).\n\n### Using the `iconUrl` option\n\nYou can however specify your own `iconUrl` option and Plyr will determine if the url is absolute and requires loading by AJAX\u002FCORS due to current browser\nlimitations or if it's a relative path, just use the path directly.\n\nIf you're using the `\u003Cbase>` tag on your site, you may need to use something like this: [svgfixer.js](https:\u002F\u002Fgist.github.com\u002Fleonderijke\u002Fc5cf7c5b2e424c0061d2)\n\nMore info on SVG sprites here: [http:\u002F\u002Fcss-tricks.com\u002Fsvg-sprites-use-better-icon-fonts\u002F](http:\u002F\u002Fcss-tricks.com\u002Fsvg-sprites-use-better-icon-fonts\u002F) and the AJAX\ntechnique here: [http:\u002F\u002Fcss-tricks.com\u002Fajaxing-svg-sprite\u002F](http:\u002F\u002Fcss-tricks.com\u002Fajaxing-svg-sprite\u002F)\n\n## Cross Origin (CORS)\n\nYou'll notice the `crossorigin` attribute on the example `\u003Cvideo>` elements. This is because the TextTrack captions are loaded from another domain. If your\nTextTrack captions are also hosted on another domain, you will need to add this attribute and make sure your host has the correct headers setup. For more info\non CORS checkout the MDN docs:\n[https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FHTTP\u002FAccess_control_CORS](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FHTTP\u002FAccess_control_CORS)\n\nIf you need to attach credentials (such as cookies, authorization headers, or certificates) to preview thumbnail requests, use the `withCredentials` option as\nillustrated below:\n\n```js\nconst player = new Plyr(video, {\n  previewThumbnails: {\n    enabled: true,\n    src: 'https:\u002F\u002Fcdn.example.com\u002Fstoryboard.vtt',\n    withCredentials: true,\n  },\n});\n```\n\n## Captions\n\nWebVTT captions are supported. To add a caption track, check the HTML example above and look for the `\u003Ctrack>` element. Be sure to\n[validate your caption files](https:\u002F\u002Fquuz.org\u002Fwebvtt\u002F).\n\n## JavaScript\n\n### Initializing\n\nYou can specify a range of arguments for the constructor to use:\n\n- A [CSS string selector](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FCSS\u002FCSS_Selectors)\n- A [`HTMLElement`](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen\u002Fdocs\u002FWeb\u002FAPI\u002FHTMLElement)\n- A [jQuery](https:\u002F\u002Fjquery.com) object\n\n_Note_: If a `NodeList`, `Array`, or jQuery object are passed, the first element will be used for setup. To setup multiple players, see [multiple players](#multiple-players) below.\n\n#### Single player\n\nPassing a CSS string selector that's compatible with [`querySelector`](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FDocument\u002FquerySelector):\n\n```js\nconst player = new Plyr('#player');\n```\n\nPassing a [HTMLElement](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen\u002Fdocs\u002FWeb\u002FAPI\u002FHTMLElement):\n\n```js\nconst player = new Plyr(document.getElementById('player'));\n```\n\n```js\nconst player = new Plyr(document.querySelector('.js-player'));\n```\n\nThe HTMLElement or string selector can be the target `\u003Cvideo>`, `\u003Caudio>`, or `\u003Cdiv>` wrapper for embeds.\n\n#### Multiple players\n\nYou have two choices here. You can either use a simple array loop to map the constructor:\n\n```js\nconst players = Array.from(document.querySelectorAll('.js-player')).map((p) => new Plyr(p));\n```\n\n...or use a static method where you can pass a [CSS string selector](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FCSS\u002FCSS_Selectors), a [NodeList](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FNodeList), an [Array](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FArray) of [HTMLElement](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen\u002Fdocs\u002FWeb\u002FAPI\u002FHTMLElement), or a [JQuery](https:\u002F\u002Fjquery.com) object:\n\n```js\nconst players = Plyr.setup('.js-player');\n```\n\nBoth options will also return an array of instances in the order of they were in the DOM for the string selector or the source NodeList or Array.\n\n#### Options\n\nThe second argument for the constructor is the [options](#options) object:\n\n```js\nconst player = new Plyr('#player', {\n  title: 'Example Title',\n});\n```\n\nOptions can be passed as an object to the constructor as above or as JSON in `data-plyr-config` attribute on each of your target elements:\n\n```html\n\u003Cvideo src=\"\u002Fpath\u002Fto\u002Fvideo.mp4\" id=\"player\" controls data-plyr-config='{ \"title\": \"Example Title\" }'>\u003C\u002Fvideo>\n```\n\nNote the single quotes encapsulating the JSON and double quotes on the object keys. Only string values need double quotes.\n\n| Option               | Type                       | Default                                                                                                                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                             |\n| -------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `enabled`            | Boolean                    | `true`                                                                                                                         | Completely disable Plyr. This would allow you to do a User Agent check or similar to programmatically enable or disable Plyr for a certain UA. Example below.                                                                                                                                                                                                                                                                           |\n| `debug`              | Boolean                    | `false`                                                                                                                        | Display debugging information in the console                                                                                                                                                                                                                                                                                                                                                                                            |\n| `controls`           | Array, Function or Element | `['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen']` | If a function is passed, it is assumed your method will return either an element or HTML string for the controls. Three arguments will be passed to your function; `id` (the unique id for the player), `seektime` (the seektime step in seconds), and `title` (the media title). See [CONTROLS.md](CONTROLS.md) for more info on how the html needs to be structured.                                                                  |\n| `settings`           | Array                      | `['captions', 'quality', 'speed', 'loop']`                                                                                     | If the default controls are used, you can specify which settings to show in the menu                                                                                                                                                                                                                                                                                                                                                    |\n| `i18n`               | Object                     | See [defaults.js](\u002Fsrc\u002Fjs\u002Fconfig\u002Fdefaults.js)                                                                                  | Used for internationalization (i18n) of the text within the UI.                                                                                                                                                                                                                                                                                                                                                                         |\n| `loadSprite`         | Boolean                    | `true`                                                                                                                         | Load the SVG sprite specified as the `iconUrl` option (if a URL). If `false`, it is assumed you are handling sprite loading yourself.                                                                                                                                                                                                                                                                                                   |\n| `iconUrl`            | String                     | `https:\u002F\u002Fcdn.plyr.io\u002F3.8.4\u002Fplyr.svg`                                                                                           | Specify a URL or path to the SVG sprite. See the [SVG section](#svg) for more info.                                                                                                                                                                                                                                                                                                                                                     |\n| `iconPrefix`         | String                     | `plyr`                                                                                                                         | Specify the id prefix for the icons used in the default controls (e.g. \"plyr-play\" would be \"plyr\"). This is to prevent clashes if you're using your own SVG sprite but with the default controls. Most people can ignore this option.                                                                                                                                                                                                  |\n| `blankVideo`         | String                     | `https:\u002F\u002Fcdn.plyr.io\u002Fstatic\u002Fblank.mp4`                                                                                         | Specify a URL or path to a blank video file used to properly cancel network requests.                                                                                                                                                                                                                                                                                                                                                   |\n| `autoplay`&sup2;     | Boolean                    | `false`                                                                                                                        | Autoplay the media on load. If the `autoplay` attribute is present on a `\u003Cvideo>` or `\u003Caudio>` element, this will be automatically set to true.                                                                                                                                                                                                                                                                                         |\n| `autopause`&sup1;    | Boolean                    | `true`                                                                                                                         | Only allow one player playing at once.                                                                                                                                                                                                                                                                                                                                                                                                  |\n| `playsinline`&sup3;  | Boolean                    | `true`                                                                                                                         | Allow inline playback on iOS. Note this has no effect on iPadOS.                                                                                                                                                                                                                                                                                                                                                                        |\n| `seekTime`           | Number                     | `10`                                                                                                                           | The time, in seconds, to seek when a user hits fast forward or rewind.                                                                                                                                                                                                                                                                                                                                  |\n| `volume`             | Number                     | `1`                                                                                                                            | A number, between 0 and 1, representing the initial volume of the player.                                                                                                                                                                                                                                                                                                                               |\n| `muted`              | Boolean                    | `false`                                                                                                                        | Whether to start playback muted. If the `muted` attribute is present on a `\u003Cvideo>` or `\u003Caudio>` element, this will be automatically set to true.                                                                                                                                                                                                                                                       |\n| `clickToPlay`        | Boolean                    | `true`                                                                                                                         | Click (or tap) of the video container will toggle play\u002Fpause.                                                                                                                                                                                                                                                                                                                                           |\n| `disableContextMenu` | Boolean                    | `true`                                                                                                                         | Disable right click menu on video to \u003Cem>help\u003C\u002Fem> as very primitive obfuscation to prevent downloads of content.                                                                                                                                                                                                                                                                                       |\n| `hideControls`       | Boolean                    | `true`                                                                                                                         | Hide video controls automatically after 2s of no mouse or focus movement, on control element blur (tab out), on playback start or entering fullscreen. As soon as the mouse is moved, a control element is focused or playback is paused, the controls reappear instantly.                                                                                                                              |\n| `resetOnEnd`         | Boolean                    | false                                                                                                                          | Reset the playback to the start once playback is complete.                                                                                                                                                                                                                                                                                                                                              |\n| `keyboard`           | Object                     | `{ focused: true, global: false }`                                                                                             | Enable [keyboard shortcuts](#shortcuts) for focused players only or globally                                                                                                                                                                                                                                                                                                                            |\n| `tooltips`           | Object                     | `{ controls: false, seek: true }`                                                                                              | `controls`: Display control labels as tooltips on `:hover` & `:focus` (by default, the labels are screen reader only). `seek`: Display a seek tooltip to indicate on click where the media would seek to.                                                                                                                                                                                               |\n| `duration`           | Number                     | `null`                                                                                                                         | Specify a custom duration for media.                                                                                                                                                                                                                                                                                                                                                                    |\n| `displayDuration`    | Boolean                    | `true`                                                                                                                         | Displays the duration of the media on the \"metadataloaded\" event (on startup) in the current time display. This will only work if the `preload` attribute is not set to `none` (or is not set at all) and you choose not to display the duration (see `controls` option).                                                                                                                               |\n| `invertTime`         | Boolean                    | `true`                                                                                                                         | Display the current time as a countdown rather than an incremental counter.                                                                                                                                                                                                                                                                                                                             |\n| `toggleInvert`       | Boolean                    | `true`                                                                                                                         | Allow users to click to toggle the above.                                                                                                                                                                                                                                                                                                                                                               |\n| `listeners`          | Object                     | `null`                                                                                                                         | Allows binding of event listeners to the controls before the default handlers. See the `defaults.js` for available listeners. If your handler prevents default on the event (`event.preventDefault()`), the default handler will not fire.                                                                                                                                                              |\n| `captions`           | Object                     | `{ active: false, language: 'auto', update: false }`                                                                           | `active`: Toggles if captions should be active by default. `language`: Sets the default language to load (if available). 'auto' uses the browser language. `update`: Listen to changes to tracks and update menu. This is needed for some streaming libraries, but can result in non-selectable language options).                                                                                      |\n| `fullscreen`         | Object                     | `{ enabled: true, fallback: true, iosNative: false, container: null }`                                                         | `enabled`: Toggles whether fullscreen should be enabled. `fallback`: Allow fallback to a full-window solution (`true`\u002F`false`\u002F`'force'`). `iosNative`: whether to use native iOS fullscreen when entering fullscreen (no custom controls). `container`: A selector for an ancestor of the player element, allows contextual content to remain visual in fullscreen mode. Non-ancestors are ignored.     |\n| `ratio`              | String                     | `null`                                                                                                                         | Force an aspect ratio for all videos. The format is `'w:h'` - e.g. `'16:9'` or `'4:3'`. If this is not specified then the default for HTML5 and Vimeo is to use the native resolution of the video. As dimensions are not available from YouTube via SDK, 16:9 is forced as a sensible default.                                                                                                         |\n| `storage`            | Object                     | `{ enabled: true, key: 'plyr' }`                                                                                               | `enabled`: Allow use of local storage to store user settings. `key`: The key name to use.                                                                                                                                                                                                                                                                                                               |\n| `speed`              | Object                     | `{ selected: 1, options: [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 4] }`                                                              | `selected`: The default speed for playback. `options`: The speed options to display in the UI. YouTube and Vimeo will ignore any options outside of the 0.5-2 range, so options outside of this range will be hidden automatically.                                                                                                                                                                     |\n| `quality`            | Object                     | `{ default: 576, options: [4320, 2880, 2160, 1440, 1080, 720, 576, 480, 360, 240] }`                                           | `default` is the default quality level (if it exists in your sources). `options` are the options to display. This is used to filter the available sources.                                                                                                                                                                                                                                              |\n| `loop`               | Object                     | `{ active: false }`                                                                                                            | `active`: Whether to loop the current video. If the `loop` attribute is present on a `\u003Cvideo>` or `\u003Caudio>` element, this will be automatically set to true This is an object to support future functionality.                                                                                                                                                                                          |\n| `ads`                | Object                     | `{ enabled: false, publisherId: '', tagUrl: '' }`                                                                              | `enabled`: Whether to enable advertisements. `publisherId`: Your unique [vi.ai](https:\u002F\u002Fvi.ai\u002Fpublisher-video-monetization\u002F?aid=plyrio) publisher ID. `tagUrl` is a URL for a custom VAST tag if you're not using Vi.                                                                                                                                                                                   |\n| `urls`               | Object                     | See source.                                                                                                                    | If you wish to override any API URLs then you can do so here. You can also set a custom download URL for the download button.                                                                                                                                                                                                                                                                           |\n| `vimeo`              | Object                     | `{ byline: false, portrait: false, title: false, speed: true, transparent: false }`                                            | See [Vimeo embed options](https:\u002F\u002Fgithub.com\u002Fvimeo\u002Fplayer.js\u002F#embed-options). Some are set automatically based on other config options, namely: `loop`, `autoplay`, `muted`, `gesture`, `playsinline`                                                                                                                                                                                                   |\n| `youtube`            | Object                     | `{ noCookie: false, rel: 0, showinfo: 0, iv_load_policy: 3, modestbranding: 1 }`                                               | See [YouTube embed options](https:\u002F\u002Fdevelopers.google.com\u002Fyoutube\u002Fplayer_parameters#Parameters). The only custom option is `noCookie` to use an alternative to YouTube that doesn't use cookies (useful for GDPR, etc). Some are set automatically based on other config options, namely: `autoplay`, `hl`, `controls`, `disablekb`, `playsinline`, `cc_load_policy`, `cc_lang_pref`, `widget_referrer` |\n| `previewThumbnails`  | Object                     | `{ enabled: false, src: '', withCredentials: false }`                                                                          | `enabled`: Whether to enable the preview thumbnails (they must be generated by you). `src`: Must be either a string or an array of strings representing URLs for the VTT files containing the image URL(s). Learn more about [preview thumbnails](#preview-thumbnails) below. `withCredentials`: Whether to attach credentials (such as cookies and authorization headers) to the requests.             |\n| `mediaMetadata`      | Object                     | `{ title: '', artist: '', album: '', artwork: [] }`                                                                            | The [MediaMetadata](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FMediaMetadata) interface of the Media Session API allows a web page to provide rich media metadata for display in a platform UI.                                                                                                                                                                                                   |\n| `markers`            | Object                     | `{ enabled: false, points: [] }`                                                                                               | `enabled`: Whether to enable markers. `points` is an array of `{ time: number; label: string; }` objects where `time` represents the marker position in seconds and `label` is the HTML string to be displayed.                                                                                                                                                                                         |\n\n1. Vimeo only\n2. Autoplay is generally not recommended as it is seen as a negative user experience. It is also disabled in many browsers. Before raising issues, do your homework. More info can be found here:\n\n- \u003Chttps:\u002F\u002Fwebkit.org\u002Fblog\u002F6784\u002Fnew-video-policies-for-ios\u002F>\n- \u003Chttps:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Fupdates\u002F2017\u002F09\u002Fautoplay-policy-changes>\n- \u003Chttps:\u002F\u002Fhacks.mozilla.org\u002F2019\u002F02\u002Ffirefox-66-to-block-automatically-playing-audible-video-and-audio\u002F>\n\n3. YouTube does not support programatically toggling the native fullscreen player via it's API. This means on iOS you have two options, neither being perfect:\n\n- Use the fallback\u002Ffaux fullscreen option which covers the whole viewport (this is the default)\n- Set `playsinline` to `false` and\u002For `fullscreen.iosNative` to `true` - either option hides the fullscreen toggle in the UI (because of the above API issue) and means iOS will play the video in it's native player.\n\n# API\n\nThere are methods, setters and getters on a Plyr object.\n\n## Object\n\nThe easiest way to access the Plyr object is to set the return value from your call to the constructor to a variable. For example:\n\n```js\nconst player = new Plyr('#player', {\n  \u002F* options *\u002F\n});\n```\n\nYou can also access the object through any events:\n\n```js\nelement.addEventListener('ready', (event) => {\n  const player = event.detail.plyr;\n});\n```\n\n## Methods\n\nExample method use:\n\n```js\nplayer.play(); \u002F\u002F Start playback\nplayer.fullscreen.enter(); \u002F\u002F Enter fullscreen\n```\n\n| Method                                                   | Parameters       | Description                                                                                                |\n| -------------------------------------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- |\n| `play()`&sup1;                                           | -                | Start playback.                                                                                            |\n| `pause()`                                                | -                | Pause playback.                                                                                            |\n| `togglePlay(toggle)`&sup1;                               | Boolean          | Toggle playback, if no parameters are passed, it will toggle based on current status.                      |\n| `stop()`                                                 | -                | Stop playback and reset to start.                                                                          |\n| `restart()`                                              | -                | Restart playback.                                                                                          |\n| `rewind(seekTime)`                                       | Number           | Rewind playback by the specified seek time. If no parameter is passed, the default seek time will be used. |\n| `forward(seekTime)`                                      | Number           | Fast forward by the specified seek time. If no parameter is passed, the default seek time will be used.    |\n| `increaseVolume(step)`                                   | Number           | Increase volume by the specified step. If no parameter is passed, the default step will be used.           |\n| `decreaseVolume(step)`                                   | Number           | Increase volume by the specified step. If no parameter is passed, the default step will be used.           |\n| `toggleCaptions(toggle)`                                 | Boolean          | Toggle captions display. If no parameter is passed, it will toggle based on current status.                |\n| `fullscreen.enter()`                                     | -                | Enter fullscreen. If fullscreen is not supported, a fallback \"full window\u002Fviewport\" is used instead.       |\n| `fullscreen.exit()`                                      | -                | Exit fullscreen.                                                                                           |\n| `fullscreen.toggle()`                                    | -                | Toggle fullscreen.                                                                                         |\n| `airplay()`                                              | -                | Trigger the airplay dialog on supported devices.                                                           |\n| `setPreviewThumbnails(source: PreviewThumbnailsOptions)` | -                | Sets the preview thumbnails for the current source.                                                        |\n| `toggleControls(toggle)`                                 | Boolean          | Toggle the controls (video only). Takes optional truthy value to force it on\u002Foff.                          |\n| `on(event, function)`                                    | String, Function | Add an event listener for the specified event.                                                             |\n| `once(event, function)`                                  | String, Function | Add an event listener for the specified event once.                                                        |\n| `off(event, function)`                                   | String, Function | Remove an event listener for the specified event.                                                          |\n| `supports(type)`                                         | String           | Check support for a mime type.                                                                             |\n| `destroy()`                                              | -                | Destroy the instance and garbage collect any elements.                                                     |\n\n1. For HTML5 players, `play()` will return a [`Promise`](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FPromise) for most browsers - e.g. Chrome, Firefox, Opera, Safari and Edge [according to MDN](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FHTMLMediaElement\u002Fplay) at time of writing.\n\n## Getters and Setters\n\nExample setters:\n\n```js\nplayer.volume = 0.5; \u002F\u002F Sets volume at 50%\nplayer.currentTime = 10; \u002F\u002F Seeks to 10 seconds\n```\n\nExample getters:\n\n```js\nplayer.volume; \u002F\u002F 0.5;\nplayer.currentTime; \u002F\u002F 10\nplayer.fullscreen.active; \u002F\u002F false;\n```\n\n| Property             | Getter | Setter | Description                                                                                                                                                                                                                                                                                                                            |\n| -------------------- | ------ | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `isHTML5`            | ✓      | -      | Returns a boolean indicating if the current player is HTML5.                                                                                                                                                                                                                                                                           |\n| `isEmbed`            | ✓      | -      | Returns a boolean indicating if the current player is an embedded player.                                                                                                                                                                                                                                                              |\n| `playing`            | ✓      | -      | Returns a boolean indicating if the current player is playing.                                                                                                                                                                                                                                                                         |\n| `paused`             | ✓      | -      | Returns a boolean indicating if the current player is paused.                                                                                                                                                                                                                                                                          |\n| `stopped`            | ✓      | -      | Returns a boolean indicating if the current player is stopped.                                                                                                                                                                                                                                                                         |\n| `ended`              | ✓      | -      | Returns a boolean indicating if the current player has finished playback.                                                                                                                                                                                                                                                              |\n| `buffered`           | ✓      | -      | Returns a float between 0 and 1 indicating how much of the media is buffered                                                                                                                                                                                                                                                           |\n| `currentTime`        | ✓      | ✓      | Gets or sets the currentTime for the player. The setter accepts a float in seconds.                                                                                                                                                                                                                                                    |\n| `seeking`            | ✓      | -      | Returns a boolean indicating if the current player is seeking.                                                                                                                                                                                                                                                                         |\n| `duration`           | ✓      | -      | Returns the duration for the current media.                                                                                                                                                                                                                                                                                            |\n| `volume`             | ✓      | ✓      | Gets or sets the volume for the player. The setter accepts a float between 0 and 1.                                                                                                                                                                                                                                                    |\n| `muted`              | ✓      | ✓      | Gets or sets the muted state of the player. The setter accepts a boolean.                                                                                                                                                                                                                                                              |\n| `hasAudio`           | ✓      | -      | Returns a boolean indicating if the current media has an audio track.                                                                                                                                                                                                                                                                  |\n| `speed`              | ✓      | ✓      | Gets or sets the speed for the player. The setter accepts a value ","Plyr 是一个简洁、轻量级且可访问的HTML5、YouTube和Vimeo媒体播放器。它支持现代浏览器，具备HTML视频与音频、YouTube及Vimeo格式的支持，同时提供VTT字幕和屏幕阅读器的无障碍功能。用户可以自定义播放器外观以满足特定需求，并且 Plyr 使用标准的HTML元素确保代码的清洁性。此外，Plyr 支持响应式设计、广告插入、多种流媒体技术（如hls.js, Shaka 和 dash.js）、API控制、事件标准化处理以及全屏模式等特性。此项目非常适合需要在网站或应用中嵌入高质量多媒体播放功能的开发者使用。",2,"2026-06-11 02:51:23","top_language"]