diff options
author | Sam Potts <me@sampotts.me> | 2015-06-07 23:00:26 +1000 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-06-07 23:00:26 +1000 |
commit | 4c17f985208c147294cff0f05c39617d13e61efd (patch) | |
tree | 9bf10b19ce13af98bac1fb725e798f7a3c0e30b9 /readme.md | |
parent | df84ce6e90b1e4bad78939cf4095493bd2e17b11 (diff) | |
download | plyr-4c17f985208c147294cff0f05c39617d13e61efd.tar.lz plyr-4c17f985208c147294cff0f05c39617d13e61efd.tar.xz plyr-4c17f985208c147294cff0f05c39617d13e61efd.zip |
TogglePlay API method (Fixes #86), Volume border (Fixes #87), Chrome Subs (Fixes #90)
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -37,7 +37,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.1.10/plyr.js` to `https://cdn.plyr.io/1.1.10/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.1.11/plyr.js` to `https://cdn.plyr.io/1.1.11/plyr.js` ### Bower If bower is your thang, you can grab Plyr using: @@ -57,11 +57,11 @@ More info is on [npm](https://www.npmjs.com/package/ember-cli-plyr) and [GitHub] If you want to use our CDN, you can use the following: ```html -<link rel="stylesheet" href="https://cdn.plyr.io/1.1.10/plyr.css"> -<script src="https://cdn.plyr.io/1.1.10/plyr.js"></script> +<link rel="stylesheet" href="https://cdn.plyr.io/1.1.11/plyr.css"> +<script src="https://cdn.plyr.io/1.1.11/plyr.js"></script> ``` -You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.1.10/sprite.svg`. +You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.1.11/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. @@ -302,6 +302,11 @@ Here's a list of the methods supported: <td>Sets the player volume to the provided parameter. The value should be between 0 (muted) and 10 (loudest). If no parameter is provided, the default volume is used (5). Values over 10 are ignored.</td> </tr> <tr> + <td><code>togglePlay()</code></td> + <td>Boolean</td> + <td>Toggles playback for the player based on either the boolean argument or it's current state.</td> + </tr> + <tr> <td><code>toggleMute()</code></td> <td>—</td> <td>Toggles mute for the player.</td> |