diff options
author | Sam Potts <me@sampotts.me> | 2015-03-30 21:03:48 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-03-30 21:03:48 +1100 |
commit | 73de5b577342d4035f71bb595c922cc89000d7f6 (patch) | |
tree | 37e08d294c7794df443d08e4040f2e8dcf4692e6 /readme.md | |
parent | aa1fed0b16bd73418cceb23526c0660d551265eb (diff) | |
download | plyr-73de5b577342d4035f71bb595c922cc89000d7f6.tar.lz plyr-73de5b577342d4035f71bb595c922cc89000d7f6.tar.xz plyr-73de5b577342d4035f71bb595c922cc89000d7f6.zip |
Added displayDuration option, small bug fix
- Using the native VTT cues, sometimes cues would not disappear
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -38,7 +38,7 @@ If you have any cool ideas or features, please let me know by [creating an issue Check `docs/index.html` and `docs/dist/docs.js` for an example setup. -**Heads up**, the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.0.30/plyr.js` to `https://cdn.plyr.io/1.0.30/plyr.js` +**Heads up**, the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.0.31/plyr.js` to `https://cdn.plyr.io/1.0.31/plyr.js` ### Bower If bower is your thang, you can grab Plyr using: @@ -51,11 +51,11 @@ More info on setting up dependencies can be found in the [Bower Docs](http://bow If you want to use our CDN, you can use the following. HTTPS (SSL) is supported. ```html -<link rel="stylesheet" href="//cdn.plyr.io/1.0.30/plyr.css"> -<script src="//cdn.plyr.io/1.0.30/plyr.js"></script> +<link rel="stylesheet" href="//cdn.plyr.io/1.0.31/plyr.css"> +<script src="//cdn.plyr.io/1.0.31/plyr.js"></script> ``` -You can also access the `sprite.svg` file at `//cdn.plyr.io/1.0.30/sprite.svg`. +You can also access the `sprite.svg` file at `//cdn.plyr.io/1.0.31/sprite.svg`. ### CSS If you want to use the default css, add the `plyr.css` file from /dist into your head, or even better use `plyr.less` or `plyr.sass` file included in `/src` in your build to save a request. @@ -198,6 +198,12 @@ You can pass the following options to the setup method. <td><code>false</code></td> <td>Display control labels as tooltips on :hover & :focus (by default, the labels are screen reader only).</td> </tr> + <tr> + <td><code>displayDuration</code></td> + <td>Boolean</td> + <td><code>true</code></td> + <td>Displays the duration of the media on the "metadataloaded" event. This will only work if the `preload` attribute is not set to `none`. It is `auto` by default (if the attribute is not present).</td> + </tr> <tr> <td><code>selectors</code></td> <td>Object</td> |