{"id":13402634,"url":"https://github.com/sampotts/plyr","last_synced_at":"2026-04-05T17:36:29.270Z","repository":{"id":27320503,"uuid":"30794868","full_name":"sampotts/plyr","owner":"sampotts","description":"A simple HTML5, YouTube and Vimeo player","archived":false,"fork":false,"pushed_at":"2026-01-03T16:10:02.000Z","size":66324,"stargazers_count":29705,"open_issues_count":927,"forks_count":3127,"subscribers_count":426,"default_branch":"master","last_synced_at":"2026-04-04T09:06:03.509Z","etag":null,"topics":["html5-video","javascript","plyr","vimeo","youtube"],"latest_commit_sha":null,"homepage":"https://plyr.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sampotts.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"sampotts","patreon":"plyr","open_collective":"plyr"}},"created_at":"2015-02-14T11:33:07.000Z","updated_at":"2026-04-04T01:15:01.000Z","dependencies_parsed_at":"2025-12-12T06:07:21.729Z","dependency_job_id":null,"html_url":"https://github.com/sampotts/plyr","commit_stats":{"total_commits":1778,"total_committers":203,"mean_commits":8.758620689655173,"dds":0.6434195725534309,"last_synced_commit":"a148e2e5b6eb4cda1d63a21397636a365f5dabbb"},"previous_names":["selz/plyr","sampotts/simple-media"],"tags_count":240,"template":false,"template_full_name":null,"purl":"pkg:github/sampotts/plyr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampotts%2Fplyr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampotts%2Fplyr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampotts%2Fplyr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampotts%2Fplyr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sampotts","download_url":"https://codeload.github.com/sampotts/plyr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampotts%2Fplyr/sbom","scorecard":{"id":797955,"data":{"date":"2025-08-11","repo":{"name":"github.com/sampotts/plyr","commit":"a148e2e5b6eb4cda1d63a21397636a365f5dabbb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 5/27 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-593m-55hh-j8gv","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-r7jx-5m6m-cpg9","Warn: Project is vulnerable to: GHSA-q9mw-68c2-j6m5","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-6w63-h3fj-q4vw","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-f9xv-q969-pqx4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T09:34:53.828Z","repository_id":27320503,"created_at":"2025-08-23T09:34:53.828Z","updated_at":"2025-08-23T09:34:53.828Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html5-video","javascript","plyr","vimeo","youtube"],"created_at":"2024-07-30T19:01:18.608Z","updated_at":"2026-04-05T17:36:29.238Z","avatar_url":"https://github.com/sampotts.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sampotts","https://patreon.com/plyr","https://opencollective.com/plyr","https://www.patreon.com/plyr","https://www.paypal.me/pottsy/20usd","https://opencollective.com/plyr/contribute","https://opencollective.com/plyr/organization/0/website","https://opencollective.com/plyr/organization/1/website","https://opencollective.com/plyr/organization/2/website"],"categories":["JavaScript","Uncategorized","javascript","前端开发框架及项目","目录","HarmonyOS","Repository","Players \u0026 Clients","Table of Contents","25. 音频/视频","Players","🔧 Utilities \u0026 Miscellaneous","Tool","Video \u0026 Image ##"],"sub_categories":["Uncategorized","其他_文本生成、文本对话","Windows Manager","Audio/Video","Web Players","Video Libraries","24.3 Web Sockets","Media tool","React - dApps ###"],"readme":"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://plyr.io) - [Donate](#donate) - [Slack](https://bit.ly/plyr--chat) - [Video hosting](https://mux.com?ref=plyr-github)\n\n[![npm version](https://badge.fury.io/js/plyr.svg)](https://badge.fury.io/js/plyr) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/sampotts/plyr) [![Financial Contributors on Open Collective](https://opencollective.com/plyr/all/badge.svg?label=financial+contributors)](https://opencollective.com/plyr)\n\n[![Screenshot of Plyr](https://cdn.plyr.io/static/screenshot.webp)](https://plyr.io)\n\n# Features\n\n- 📼 **HTML Video \u0026 Audio, YouTube \u0026 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\"\u003e` for volume and `\u003cprogress\u003e` for progress and well, `\u003cbutton\u003e`s for buttons. There's no\n  `\u003cspan\u003e` or `\u003ca href=\"#\"\u003e` 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://codepen.io/pen?template=bKeqpr), [HTML5 audio](https://codepen.io/pen?template=rKLywR), [YouTube](https://codepen.io/pen?template=GGqbbJ), [Vimeo](https://codepen.io/pen?template=bKeXNq). For Streaming we also have example integrations with: [Dash.js](https://codepen.io/pen?template=GRoogML), [Hls.js](https://codepen.io/pen?template=oyLKQb) and [Shaka Player](https://codepen.io/pen?template=ZRpzZO)\n\n# Quick setup\n\n## HTML\n\nPlyr extends upon the standard [HTML5 media element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement) 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=\"/path/to/poster.jpg\"\u003e\n  \u003csource src=\"/path/to/video.mp4\" type=\"video/mp4\" /\u003e\n  \u003csource src=\"/path/to/video.webm\" type=\"video/webm\" /\u003e\n\n  \u003c!-- Captions are optional --\u003e\n  \u003ctrack kind=\"captions\" label=\"English captions\" src=\"/path/to/captions.vtt\" srclang=\"en\" default /\u003e\n\u003c/video\u003e\n```\n\n**Note**: The poster image should be specified using `data-poster`. This is to prevent it [being downloaded twice](https://github.com/sampotts/plyr/issues/1531). 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\u003e\n  \u003csource src=\"/path/to/audio.mp3\" type=\"audio/mp3\" /\u003e\n  \u003csource src=\"/path/to/audio.ogg\" type=\"audio/ogg\" /\u003e\n\u003c/audio\u003e\n```\n\nFor YouTube and Vimeo players, Plyr uses progressive enhancement to enhance the default `\u003ciframe\u003e` 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://www.smashingmagazine.com/2009/04/progressive-enhancement-what-it-is-and-how-to-use-it/) with the embedded players. You can elect to use an `\u003ciframe\u003e` as the source element (which Plyr will progressively enhance) or a bog standard `\u003cdiv\u003e` with two essential data attributes - `data-plyr-provider` and `data-plyr-embed-id`.\n\n```html\n\u003cdiv class=\"plyr__video-embed\" id=\"player\"\u003e\n  \u003ciframe\n    src=\"https://www.youtube.com/embed/bTqVqk7FSmY?origin=https://plyr.io\u0026amp;iv_load_policy=3\u0026amp;modestbranding=1\u0026amp;playsinline=1\u0026amp;showinfo=0\u0026amp;rel=0\u0026amp;enablejsapi=1\"\n    allowfullscreen\n    allowtransparency\n    allow=\"autoplay\"\n  \u003e\u003c/iframe\u003e\n\u003c/div\u003e\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\u003e` non progressively enhanced method:\n\n```html\n\u003cdiv id=\"player\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"bTqVqk7FSmY\"\u003e\u003c/div\u003e\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\"\u003e\n  \u003ciframe\n    src=\"https://player.vimeo.com/video/76979871?loop=false\u0026amp;byline=false\u0026amp;portrait=false\u0026amp;title=false\u0026amp;speed=true\u0026amp;transparent=0\u0026amp;gesture=media\"\n    allowfullscreen\n    allowtransparency\n    allow=\"autoplay\"\n  \u003e\u003c/iframe\u003e\n\u003c/div\u003e\n```\n\nOr the `\u003cdiv\u003e` non progressively enhanced method:\n\n```html\n\u003cdiv id=\"player\" data-plyr-provider=\"vimeo\" data-plyr-embed-id=\"76979871\"\u003e\u003c/div\u003e\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/body\u003e` tag and then in your JS create a new instance of Plyr as below.\n\n```html\n\u003cscript src=\"path/to/plyr.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const player = new Plyr('#player');\n\u003c/script\u003e\n```\n\nSee [initialising](#initializing) for more information on advanced setups.\n\nYou can use our CDN (provided by [Cloudflare](https://www.cloudflare.com/)) 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://cdn.plyr.io/3.8.3/plyr.js\"\u003e\u003c/script\u003e\n```\n\n...or...\n\n```html\n\u003cscript src=\"https://cdn.plyr.io/3.8.3/plyr.polyfilled.js\"\u003e\u003c/script\u003e\n```\n\n## CSS\n\nInclude the `plyr.css` stylesheet into your `\u003chead\u003e`.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"path/to/plyr.css\" /\u003e\n```\n\nIf you want to use our CDN (provided by [Cloudflare](https://www.cloudflare.com/)) for the default CSS, you can use the following:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.plyr.io/3.8.3/plyr.css\" /\u003e\n```\n\n## SVG Sprite\n\nThe SVG sprite is loaded automatically from our CDN (provided by [Cloudflare](https://www.cloudflare.com/)). To change this, see the [options](#options) below. For\nreference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.8.3/plyr.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://unpkg.com/browse/plyr/dist/) or similar services.\n- Build the project yourself using `npm i \u0026\u0026 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://vi.ai/publisher-video-monetization/?aid=plyrio) to offer monetization options for your videos. Getting setup is easy:\n\n- [Sign up for a vi.ai account](https://vi.ai/publisher-video-monetization/?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://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties).\n\nHere's a list of the properties and what they are used for:\n\n| Name                                           | Description                                                                                             | Default / Fallback                                                    |\n| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |\n| `--plyr-color-main`                            | The primary UI color.                                                                                   | ![#f03c15](https://place-hold.it/15/00b3ff/000000?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://place-hold.it/15/4a5464/000000?text=+) `#4a5464`   |\n| `--plyr-badge-text-color`                      | The text color for badges.                                                                              | ![#ffffff](https://place-hold.it/15/ffffff/000000?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://place-hold.it/15/ffffff/000000?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 / 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/icon color for video controls.                                                                 | ![#ffffff](https://place-hold.it/15/ffffff/000000?text=+) `#ffffff`   |\n| `--plyr-video-control-color-hover`             | The text/icon color used when video controls are `:hover`, `:focus` and `:focus-visible` (equivalent).  | ![#ffffff](https://place-hold.it/15/ffffff/000000?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://place-hold.it/15/ffffff/000000?text=+) `#ffffff`   |\n| `--plyr-audio-control-color`                   | The text/icon color for audio controls.                                                                 | ![#4a5464](https://place-hold.it/15/4a5464/000000?text=+) `#4a5464`   |\n| `--plyr-audio-control-color-hover`             | The text/icon color used when audio controls are `:hover`, `:focus` and `:focus-visible` (equivalent).  | ![#ffffff](https://place-hold.it/15/ffffff/000000?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/icon color for menu items.                                                                     | ![#4a5464](https://place-hold.it/15/4a5464/000000?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://place-hold.it/15/728197/000000?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://place-hold.it/15/dcdfe5/000000?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://place-hold.it/15/ffffff/000000?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/thumb.                                                                | `13px`                                                                |\n| `--plyr-range-thumb-background`                | The background of the scrubber handle/thumb.                                                            | ![#ffffff](https://place-hold.it/15/ffffff/000000?text=+) `#ffffff`   |\n| `--plyr-range-thumb-shadow`                    | The shadow of the scrubber handle/thumb.                                                                | `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/thumb is `:active` (pressed).                          | `3px`                                                                 |\n| `--plyr-range-track-height`                    | The height of the scrubber/progress track.                                                              | `5px`                                                                 |\n| `--plyr-range-fill-background`                 | The fill color of the scrubber/progress.                                                                | `--plyr-color-main`                                                   |\n| `--plyr-video-range-track-background`          | The background of the scrubber/progress.                                                                | `--plyr-video-progress-buffered-background`                           |\n| `--plyr-video-range-thumb-active-shadow-color` | The color of the shadow when the video scrubber handle/thumb is `:active` (pressed).                    | `rgba(255, 255, 255, 0.5)`                                            |\n| `--plyr-audio-range-track-background`          | The background of the scrubber/progress.                                                                | `--plyr-video-progress-buffered-background`                           |\n| `--plyr-audio-range-thumb-active-shadow-color` | The color of the shadow when the audio scrubber handle/thumb 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://place-hold.it/15/4a5464/000000?text=+) `#4a5464`   |\n| `--plyr-tooltip-padding`                       | The padding for tooltips.                                                                               | `calc(var(--plyr-control-spacing) / 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;\"\u003e...\u003c/video\u003e\n```\n\n### Sass\n\nYou can use `plyr.scss` file included in `/src/sass` as part of your build and change variables to suit your design. The Sass requires you to\nuse [autoprefixer](https://www.npmjs.com/package/gulp-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 `/src/sprite` 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/CORS due to current browser\nlimitations or if it's a relative path, just use the path directly.\n\nIf you're using the `\u003cbase\u003e` tag on your site, you may need to use something like this: [svgfixer.js](https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d2)\n\nMore 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\ntechnique here: [http://css-tricks.com/ajaxing-svg-sprite/](http://css-tricks.com/ajaxing-svg-sprite/)\n\n## Cross Origin (CORS)\n\nYou'll notice the `crossorigin` attribute on the example `\u003cvideo\u003e` 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://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_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://cdn.example.com/storyboard.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\u003e` element. Be sure to\n[validate your caption files](https://quuz.org/webvtt/).\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://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors)\n- A [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement)\n- A [jQuery](https://jquery.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://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector):\n\n```js\nconst player = new Plyr('#player');\n```\n\nPassing a [HTMLElement](https://developer.mozilla.org/en/docs/Web/API/HTMLElement):\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\u003e`, `\u003caudio\u003e`, or `\u003cdiv\u003e` 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) =\u003e new Plyr(p));\n```\n\n...or use a static method where you can pass a [CSS string selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors), a [NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList), an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) of [HTMLElement](https://developer.mozilla.org/en/docs/Web/API/HTMLElement), or a [JQuery](https://jquery.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=\"/path/to/video.mp4\" id=\"player\" controls data-plyr-config='{ \"title\": \"Example Title\" }'\u003e\u003c/video\u003e\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](/src/js/config/defaults.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://cdn.plyr.io/3.8.3/plyr.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://cdn.plyr.io/static/blank.mp4`                                                                                         | Specify a URL or path to a blank video file used to properly cancel network requests.                                                                                                                                                                                                                                                                                                                                                   |\n| `autoplay`\u0026sup2;     | Boolean                    | `false`                                                                                                                        | Autoplay the media on load. If the `autoplay` attribute is present on a `\u003cvideo\u003e` or `\u003caudio\u003e` element, this will be automatically set to true.                                                                                                                                                                                                                                                                                         |\n| `autopause`\u0026sup1;    | Boolean                    | `true`                                                                                                                         | Only allow one player playing at once.                                                                                                                                                                                                                                                                                                                                                                                                  |\n| `playsinline`\u0026sup3;  | 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\u003e` or `\u003caudio\u003e` element, this will be automatically set to true.                                                                                                                                                                                                                                                       |\n| `clickToPlay`        | Boolean                    | `true`                                                                                                                         | Click (or tap) of the video container will toggle play/pause.                                                                                                                                                                                                                                                                                                                                           |\n| `disableContextMenu` | Boolean                    | `true`                                                                                                                         | Disable right click menu on video to \u003cem\u003ehelp\u003c/em\u003e 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` \u0026 `: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`/`false`/`'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\u003e` or `\u003caudio\u003e` 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://vi.ai/publisher-video-monetization/?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://github.com/vimeo/player.js/#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://developers.google.com/youtube/player_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://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata) 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://webkit.org/blog/6784/new-video-policies-for-ios/\u003e\n- \u003chttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes\u003e\n- \u003chttps://hacks.mozilla.org/2019/02/firefox-66-to-block-automatically-playing-audible-video-and-audio/\u003e\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/faux fullscreen option which covers the whole viewport (this is the default)\n- Set `playsinline` to `false` and/or `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  /* options */\n});\n```\n\nYou can also access the object through any events:\n\n```js\nelement.addEventListener('ready', (event) =\u003e {\n  const player = event.detail.plyr;\n});\n```\n\n## Methods\n\nExample method use:\n\n```js\nplayer.play(); // Start playback\nplayer.fullscreen.enter(); // Enter fullscreen\n```\n\n| Method                                                   | Parameters       | Description                                                                                                |\n| -------------------------------------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- |\n| `play()`\u0026sup1;                                           | -                | Start playback.                                                                                            |\n| `pause()`                                                | -                | Pause playback.                                                                                            |\n| `togglePlay(toggle)`\u0026sup1;                               | 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/viewport\" 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/off.                          |\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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) for most browsers - e.g. Chrome, Firefox, Opera, Safari and Edge [according to MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play) at time of writing.\n\n## Getters and Setters\n\nExample setters:\n\n```js\nplayer.volume = 0.5; // Sets volume at 50%\nplayer.currentTime = 10; // Seeks to 10 seconds\n```\n\nExample getters:\n\n```js\nplayer.volume; // 0.5;\nplayer.currentTime; // 10\nplayer.fullscreen.active; // 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 in the options specified in your config. Generally the minimum should be 0.5.                                                                                                                                                                                        |\n| `quality`\u0026sup1;      | ✓      | ✓      | Gets or sets the quality for the player. The setter accepts a value from the options specified in your config.                                                                                                                                                                                                                         |\n| `loop`               | ✓      | ✓      | Gets or sets the current loop state of the player. The setter accepts a boolean.                                                                                                                                                                                                                                                       |\n| `source`             | ✓      | ✓      | Gets or sets the current source for the player. The setter accepts an object. See [source setter](#the-source-setter) below for examples.                                                                                                                                                                                              |\n| `poster`             | ✓      | ✓      | Gets or sets the current poster image for the player. The setter accepts a string; the URL for the updated poster image.                                                                                                                                                                                                               |\n| `previewThumbnails`  | ✓      | ✓      | Gets or sets the current preview thumbnail source for the player. The setter accepts a string                                                                                                                                                                                                                                          |\n| `autoplay`           | ✓      | ✓      | Gets or sets the autoplay state of the player. The setter accepts a boolean.                                                                                                                                                                                                                                                           |\n| `currentTrack`       | ✓      | ✓      | Gets or sets the caption track by index. `-1` means the track is missing or captions is not active                                                                                                                                                                                                                                     |\n| `language`           | ✓      | ✓      | Gets or sets the preferred captions language for the player. The setter accepts an ISO two-letter language code. Support for the languages is dependent on the captions you include. If your captions don't have any language data, or if you have multiple tracks with the same language, you may want to use `currentTrack` instead. |\n| `fullscreen.active`  | ✓      | -      | Returns a boolean indicating if the current player is in fullscreen mode.                                                                                                                                                                                                                                                              |\n| `fullscreen.enabled` | ✓      | -      | Returns a boolean indicating if the current player has fullscreen enabled.                                                                                                                                                                                                                                                             |\n| `pip`\u0026sup1;          | ✓      | ✓      | Gets or sets the picture-in-picture state of the player. The setter accepts a boolean. This currently only supported on Safari 10+ (on MacOS Sierra+ and iOS 10+) and Chrome 70+.                                                                                                                                                      |\n| `ratio`              | ✓      | ✓      | Gets or sets the video aspect ratio. The setter accepts a string in the same format as the `ratio` option.                                                                                                                                                                                                                             |\n| `download`           | ✓      | ✓      | Gets or sets the URL for the download button. The setter accepts a string containing a valid absolute URL.                                                                                                                                                                                                                             |\n\n1. HTML5 only\n\n### The `.source` setter\n\nThis allows changing the player source and type on the fly.\n\nVideo example:\n\n```js\nplayer.source = {\n  type: 'video',\n  title: 'Example title',\n  sources: [\n    {\n      src: '/path/to/movie.mp4',\n      type: 'video/mp4',\n      size: 720,\n    },\n    {\n      src: '/path/to/movie.webm',\n      type: 'video/webm',\n      size: 1080,\n    },\n  ],\n  poster: '/path/to/poster.jpg',\n  previewThumbnails: {\n    src: '/path/to/thumbnails.vtt',\n  },\n  tracks: [\n    {\n      kind: 'captions',\n      label: 'English',\n      srclang: 'en',\n      src: '/path/to/captions.en.vtt',\n      default: true,\n    },\n    {\n      kind: 'captions',\n      label: 'French',\n      srclang: 'fr',\n      src: '/path/to/captions.fr.vtt',\n    },\n  ],\n};\n```\n\nAudio example:\n\n```js\nplayer.source = {\n  type: 'audio',\n  title: 'Example title',\n  sources: [\n    {\n      src: '/path/to/audio.mp3',\n      type: 'audio/mp3',\n    },\n    {\n      src: '/path/to/audio.ogg',\n      type: 'audio/ogg',\n    },\n  ],\n};\n```\n\nYouTube example:\n\n```js\nplayer.source = {\n  type: 'video',\n  sources: [\n    {\n      src: 'bTqVqk7FSmY',\n      provider: 'youtube',\n    },\n  ],\n};\n```\n\nVimeo example\n\n```js\nplayer.source = {\n  type: 'video',\n  sources: [\n    {\n      src: '76979871',\n      provider: 'vimeo',\n    },\n  ],\n};\n```\n\n_Note:_ `src` property for YouTube and Vimeo can either be the video ID or the whole URL.\n\n| Property                  | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                    |\n| ------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `type`                    | String | Either `video` or `audio`. _Note:_ YouTube and Vimeo are currently not supported as audio sources.                                                                                                                                                                                                                                                                                                             |\n| `title`                   | String | _Optional._ Title of the new media. Used for the `aria-label` attribute on the play button, and outer container. YouTube and Vimeo are populated automatically.                                                                                                                                                                                                                                                |\n| `sources`                 | Array  | This is an array of sources. For HTML5 media, the properties of this object are mapped directly to HTML attributes so more can be added to the object if required.                                                                                                                                                                                                                                             |\n| `poster`\u0026sup1;            | String | The URL for the poster image (HTML5 video only).                                                                                                                                                                                                                                                                                                                                                               |\n| `tracks`\u0026sup1;            | String | An array of track objects. Each element in the array is mapped directly to a track element and any keys mapped directly to HTML attributes so as in the example above, it will render as `\u003ctrack kind=\"captions\" label=\"English\" srclang=\"en\" src=\"https://cdn.selz.com/plyr/1.0/example_captions_en.vtt\" default\u003e` and similar for the French version. Booleans are converted to HTML5 value-less attributes. |\n| `previewThumbnails`\u0026sup1; | Object | The same object like in the `previewThumbnails` constructor option. This means you can either change the thumbnails vtt via the `src` key or disable the thumbnails plugin for the next video by passing `{ enabled: false }`.                                                                                                                                                                                 |\n\n1. HTML5 only\n\n# Events\n\nYou can listen for events on the target element you setup Plyr on (see example under the table). Some events only apply to HTML5 audio and video. Using your\nreference to the instance, you can use the `on()` API method or `addEventListener()`. Access to the API can be obtained this way through the `event.detail.plyr`\nproperty. Here's an example:\n\n```js\nplayer.on('ready', (event) =\u003e {\n  const instance = event.detail.plyr;\n});\n```\n\n## Standard Media Events\n\n| Event Type         | Description                                                                                                                                                                                                            |\n| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `progress`         | Sent periodically to inform interested parties of progress downloading the media. Information about the current amount of the media that has been downloaded is available in the media element's `buffered` attribute. |\n| `playing`          | Sent when the media begins to play (either for the first time, after having been paused, or after ending and then restarting).                                                                                         |\n| `play`             | Sent when playback of the media starts after having been paused; that is, when playback is resumed after a prior `pause` event.                                                                                        |\n| `pause`            | Sent when playback is paused.                                                                                                                                                                                          |\n| `timeupdate`       | The time indicated by the element's `currentTime` attribute has changed.                                                                                                                                               |\n| `volumechange`     | Sent when the audio volume changes (both when the volume is set and when the `muted` state is changed).                                                                                                                |\n| `seeking`          | Sent when a seek operation begins.                                                                                                                                                                                     |\n| `seeked`           | Sent when a seek operation completes.                                                                                                                                                                                  |\n| `ratechange`       | Sent when the playback speed changes.                                                                                                                                                                                  |\n| `ended`            | Sent when playback completes. _Note:_ This does not fire if `autoplay` is true.                                                                                                                                        |\n| `enterfullscreen`  | Sent when the player enters fullscreen mode (either the proper fullscreen or full-window fallback for older browsers).                                                                                                 |\n| `exitfullscreen`   | Sent when the player exits fullscreen mode.                                                                                                                                                                            |\n| `captionsenabled`  | Sent when captions are enabled.                                                                                                                                                                                        |\n| `captionsdisabled` | Sent when captions are disabled.                                                                                                                                                                                       |\n| `languagechange`   | Sent when the caption language is changed.                                                                                                                                                                             |\n| `controlshidden`   | Sent when the controls are hidden.                                                                                                                                                                                     |\n| `controlsshown`    | Sent when the controls are shown.                                                                                                                                                                                      |\n| `ready`            | Triggered when the instance is ready for API calls.                                                                                                                                                                    |\n\n### HTML5 only\n\n| Event Type       | Description                                                                                                                                                                                                                                                                                                                                    |\n| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `loadstart`      | Sent when loading of the media begins.                                                                                                                                                                                                                                                                                                         |\n| `loadeddata`     | The first frame of the media has finished loading.                                                                                                                                                                                                                                                                                             |\n| `loadedmetadata` | The media's metadata has finished loading; all attributes now contain as much useful information as they're going to.                                                                                                                                                                                                                          |\n| `qualitychange`  | The quality of playback has changed.                                                                                                                                                                                                                                                                                                           |\n| `canplay`        | Sent when enough data is available that the media can be played, at least for a couple of frames. This corresponds to the `HAVE_ENOUGH_DATA` `readyState`.                                                                                                                                                                                     |\n| `canplaythrough` | Sent when the ready state changes to `CAN_PLAY_THROUGH`, indicating that the entire media can be played without interruption, assuming the download rate remains at least at the current level. _Note:_ Manually setting the `currentTime` will eventually fire a `canplaythrough` event in firefox. Other browsers might not fire this event. |\n| `stalled`        | Sent when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.                                                                                                                                                                                                                                              |\n| `waiting`        | Sent when the requested operation (such as playback) is delayed pending the completion of another operation (such as a seek).                                                                                                                                                                                                                  |\n| `emptied`        | he media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the `load()` method is called to reload it.                                                                                                                                                                         |\n| `cuechange`      | Sent when a `TextTrack` has changed the currently displaying cues.                                                                                                                                                                                                                                                                             |\n| `error`          | Sent when an error occurs. The element's `error` attribute contains more information.                                                                                                                                                                                                                                                          |\n\n### YouTube only\n\n| Event Type    | Description                                                                                                                                                                                                                                                                                                                |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `statechange` | The state of the player has changed. The code can be accessed via `event.detail.code`. Possible values are `-1`: Unstarted, `0`: Ended, `1`: Playing, `2`: Paused, `3`: Buffering, `5`: Video cued. See the [YouTube Docs](https://developers.google.com/youtube/iframe_api_reference#onStateChange) for more information. |\n\n_Note:_ These events also bubble up the DOM. The event target will be the container element.\n\nSome event details borrowed from [MDN](https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events).\n\n# Embeds\n\nYouTube and Vimeo are currently supported and function much like a HTML5 video. Similar events and API methods are available for all types. However if you wish\nto access the API's directly. You can do so via the `embed` property of your player object - e.g. `player.embed`. You can then use the relevant methods from the\nthird party APIs. More info on the respective API's here:\n\n- [YouTube iframe API Reference](https://developers.google.com/youtube/iframe_api_reference)\n- [Vimeo player.js Reference](https://github.com/vimeo/player.js)\n\n_Note_: Not all API methods may work 100%. Your mileage may vary. It's better to use the Plyr API where possible.\n\n# Shortcuts\n\nBy default, a player will bind the following keyboard shortcuts when it has focus. If you have the `global` option to `true` and there's only one player in the\ndocument then the shortcuts will work when any element has focus, apart from an element that requires input.\n\n| Key        | Action                                 |\n| ---------- | -------------------------------------- |\n| `0` to `9` | Seek from 0 to 90% respectively        |\n| `space`    | Toggle playback                        |\n| `K`        | Toggle playback                        |\n| \u0026larr;     | Seek backward by the `seekTime` option |\n| \u0026rarr;     | Seek forward by the `seekTime` option  |\n| \u0026uarr;     | Increase volume                        |\n| \u0026darr;     | Decrease volume                        |\n| `M`        | Toggle mute                            |\n| `F`        | Toggle fullscreen                      |\n| `C`        | Toggle captions                        |\n| `L`        | Toggle loop                            |\n\n# Preview thumbnails\n\nIt's possible to display preview thumbnails as per the demo when you hover over the scrubber or while you are scrubbing in the main video area. This can be used for all video types but is easiest with HTML5 of course. You will need to generate the sprite or images yourself. This is possible using something like AWS transcoder to generate the frames and then combine them into a sprite image. Sprites are recommended for performance reasons - they will be much faster to download and easier to compress into a small file size making them load faster.\n\nYou can see the example VTT files [here](https://cdn.plyr.io/static/demo/thumbs/100p.vtt) and [here](https://cdn.plyr.io/static/demo/thumbs/240p.vtt) for how the sprites are done. The coordinates are set as the `xywh` hash on the URL in the order X Offset, Y Offset, Width, Height (e.g. `240p-00001.jpg#xywh=1708,480,427,240` is offset `1708px` from the left, `480px` from the top and is `427x240px`. If you want to include images per frame, this is also possible but will be slower, resulting in a degraded experience.\n\n# Fullscreen\n\nFullscreen in Plyr is supported by all browsers that [currently support it](http://caniuse.com/#feat=fullscreen).\n\n# Browser support\n\nPlyr supports the last 2 versions of most _modern_ browsers.\n\n| Browser       | Supported       |\n| ------------- | --------------- |\n| Safari        | ✓               |\n| Mobile Safari | ✓\u0026sup1;         |\n| Firefox       | ✓               |\n| Chrome        | ✓               |\n| Opera         | ✓               |\n| Edge          | ✓               |\n| IE11          | ✓\u0026sup3;         |\n| IE10          | ✓\u003csup\u003e2,3\u003c/sup\u003e |\n\n1. Mobile Safari on the iPhone forces the native player for `\u003cvideo\u003e` unless the `playsinline` attribute is present. Volume controls are also disabled as they are handled device wide.\n2. Native player used (no support for `\u003cprogress\u003e` or `\u003cinput type=\"range\"\u003e`) but the API is supported. No native fullscreen support, fallback can be used (see [options](#options)).\n3. Polyfills required. See below.\n\n## Polyfills\n\nPlyr uses ES6 which isn't supported in all browsers quite yet. This means some features will need to be polyfilled to be available otherwise you'll run into issues. We've elected to not burden the ~90% of users that do support these features with extra JS and instead leave polyfilling to you to work out based on your needs.\n\n## Checking for support\n\nYou can use the static method to check for support. For example\n\n```js\nconst supported = Plyr.supported('video', 'html5');\n```\n\nThe arguments are:\n\n- Media type (`'audio' | 'video'`)\n- Provider (`'html5' | 'youtube' | 'vimeo'`)\n\n## Disable support programmatically\n\nThe `enabled` option can be used to disable certain User Agents. For example, if you don't want to use Plyr for smartphones, you could use:\n\n```js\n{\n  enabled: !/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);\n}\n```\n\nIf a User Agent is disabled but supports `\u003cvideo\u003e` and `\u003caudio\u003e` natively, it will use the native player.\n\n# Plugins \u0026 Components\n\nSome awesome folks have made plugins for CMSs and Components for JavaScript frameworks:\n\n| Type        | Maintainer                                                                  | Link                                                                                         |\n| ----------- | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |\n| WordPress   | Brandon Lavigne ([@drrobotnik](https://github.com/drrobotnik))              | [https://wordpress.org/plugins/plyr/](https://wordpress.org/plugins/plyr/)                   |\n| Angular     | Simon Bobrov ([@smnbbrv](https://github.com/smnbbrv))                       | [https://github.com/smnbbrv/ngx-plyr](https://github.com/smnbbrv/ngx-plyr)                   |\n| React       | Chintan Prajapati ([@chintan9](https://github.com/chintan9))                | [https://github.com/chintan9/plyr-react](https://github.com/chintan9/plyr-react)             |\n| Vue         | Gabe Dunn ([@redxtech](https://github.com/redxtech))                        | [https://github.com/redxtech/vue-plyr](https://github.com/redxtech/vue-plyr)                 |\n| Neos        | Jon Uhlmann ([@jonnitto](https://github.com/jonnitto))                      | [https://packagist.org/packages/jonnitto/plyr](https://packagist.org/packages/jonnitto/plyr) |\n| Kirby       | Dominik Pschenitschni ([@dpschen](https://github.com/dpschen))              | [https://github.com/dpschen/kirby-plyrtag](https://github.com/dpschen/kirby-plyrtag)         |\n| REDAXO      | FriendsOfRedaxo / skerbis ([@skerbis](https://friendsofredaxo.github.io))   | [https://github.com/FriendsOfREDAXO/plyr](https://github.com/FriendsOfREDAXO/plyr)           |\n| svelte-plyr | Ben Woodward / benwoodward ([@benwoodward](https://github.com/benwoodward)) | [https://github.com/benwoodward/svelte-plyr](https://github.com/benwoodward/svelte-plyr)     |\n\n# Issues\n\nIf you find anything weird with Plyr, please let us know using the GitHub issues tracker.\n\n# Author\n\nPlyr is developed by [@sam_potts](https://twitter.com/sam_potts) / [sampotts.me](http://sampotts.me) with help from the awesome\n[contributors](https://github.com/sampotts/plyr/graphs/contributors)\n\n# Donate\n\nPlyr costs money to run, not only my time. I donate my time for free as I enjoy building Plyr but unfortunately have to pay for domains, hosting, and more. Any help with costs is appreciated...\n\n- [Donate via Patreon](https://www.patreon.com/plyr)\n- [Donate via PayPal](https://www.paypal.me/pottsy/20usd)\n\n# Mentions\n\n- [ProductHunt](https://www.producthunt.com/tech/plyr)\n- [The Changelog](http://thechangelog.com/plyr-simple-html5-media-player-custom-controls-webvtt-captions/)\n- [HTML5 Weekly #177](http://html5weekly.com/issues/177)\n- [Responsive Design #149](http://us4.campaign-archive2.com/?u=559bc631fe5294fc66f5f7f89\u0026id=451a61490f)\n- [Web Design Weekly #174](https://web-design-weekly.com/2015/02/24/web-design-weekly-174/)\n- [Front End Focus #177](https://frontendfoc.us/issues/177)\n- [Hacker News](https://news.ycombinator.com/item?id=9136774)\n- [Web Platform Daily](http://webplatformdaily.org/releases/2015-03-04)\n- [LayerVault Designer News](https://news.layervault.com/stories/45394-plyr--a-simple-html5-media-player)\n- [The Treehouse Show #131](https://teamtreehouse.com/library/episode-131-origami-react-responsive-hero-images)\n- [noupe.com](http://www.noupe.com/design/html5-plyr-is-a-responsive-and-accessible-video-player-94389.html)\n\n# Used by\n\n- [Selz.com](https://selz.com)\n- [Peugeot.fr](http://www.peugeot.fr/marque-et-technologie/technologies/peugeot-i-cockpit.html)\n- [Peugeot.de](http://www.peugeot.de/modelle/modellberater/208-3-turer/fotos-videos.html)\n- [TomTom.com](http://prioritydriving.tomtom.com/)\n- [DIGBMX](http://digbmx.com/)\n- [Grime Archive](https://grimearchive.com/)\n- [Koel - Music streaming solution that works](https://koel.dev/)\n- [Oscar Radio](http://oscar-radio.xyz/)\n- [Sparkk TV](https://www.sparkktv.com/)\n- [@halfhalftravel](https://www.halfhalftravel.com/)\n- [BitChute](https://www.bitchute.com)\n- [Rutheneum-Bote](https://gymnasium-rutheneum.de/content/newspaper/kreativwettbewerb.php)\n- [pressakey.com | Blog-Magazin für Videospiele](https://pressakey.com)\n- [STROLLÿN: Work with a View](https://strollyn.com)\n- [CFDA Runway360](https://runway360.cfda.com/)\n- [NKLAV | Filmmaker](https://nklav.com)\n- [GDI.JS.ORG - Google Drive Index](https://gitlab.com/GoogleDriveIndex/Google-Drive-Index)\n\nIf you want to be added to the list, open a pull request. It'd be awesome to see how you're using Plyr 😎\n\n# Useful links and credits\n\n- [PayPal's Accessible HTML5 Video Player (which Plyr was originally ported from)](https://github.com/paypal/accessible-html5-video-player)\n- [An awesome guide for Plyr in Japanese!](http://syncer.jp/how-to-use-plyr-io) by [@arayutw](https://twitter.com/arayutw)\n\n# Thanks\n\n- [Cloudflare](https://www.cloudflare.com/) for providing the CDN services.\n- [Sentry](https://sentry.io/) for error logging service on the demo website.\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\n\u003ca href=\"https://github.com/sampotts/plyr/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/plyr/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/plyr/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/plyr\"\u003e\u003cimg src=\"https://opencollective.com/plyr/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/plyr/contribute)]\n\n\u003ca href=\"https://opencollective.com/plyr/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/plyr/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/plyr/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/plyr/organization/1/avatar.svg\"\u003e\u003c/a\u003e\u003ca href=\"https://opencollective.com/plyr/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/plyr/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\n# Copyright and License\n\n[The MIT license](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampotts%2Fplyr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsampotts%2Fplyr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampotts%2Fplyr/lists"}