From d9ec1d1b8e251cf30509e88a76132c0e04f8c00d Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 12 Jan 2018 19:35:46 +1100 Subject: [PATCH] Progressively enhance + ``` #### Vimeo embed ```html -
+
+ +
``` -Note: In both cases, `data-plyr-embed-id` value can be the ID or URL for the media. - ### JavaScript Include the `plyr.js` script before the closing `` tag and then call `plyr.setup()`. More info on `setup()` can be found under @@ -120,7 +122,7 @@ Include the `plyr.js` script before the closing `` tag and then call `ply If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript, you can use the following: ```html - + ``` ### CSS @@ -134,13 +136,13 @@ Include the `plyr.css` stylsheet into your `` If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following: ```html - + ``` ### SVG Sprite The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For -reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.0.0-beta.1/plyr.svg`. +reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.0.0-beta.2/plyr.svg`. ## Advanced @@ -211,8 +213,7 @@ Passing a [NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList): const player = new Plyr(document.querySelectorAll('.js-player')); ``` -The NodeList, HTMLElement or string selector can be the target `