diff options
author | Sam Potts <me@sampotts.me> | 2016-02-23 15:11:48 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2016-02-23 15:11:48 +1100 |
commit | ab329b99df6516b12fd40201dc74fd4432e35605 (patch) | |
tree | 39cb53ca6cd275341837eb7497b5f00be2258893 | |
parent | 54af43dd752efeaa97e41c4819dc98aa5ddf68fc (diff) | |
parent | 188a2e72eb8c32da5223712c2488441729cc5c83 (diff) | |
download | plyr-ab329b99df6516b12fd40201dc74fd4432e35605.tar.lz plyr-ab329b99df6516b12fd40201dc74fd4432e35605.tar.xz plyr-ab329b99df6516b12fd40201dc74fd4432e35605.zip |
Merge branch 'master' of github.com:selz/plyr
-rw-r--r-- | readme.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -163,6 +163,11 @@ You'll notice the `crossorigin` attribute on the example `<video>` and `<audio>` More info on CORS here: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) +### Captions +WebVTT captions are supported. To add a caption track, check the HTML example above and look for the `<track>` element. + +Be sure to [validate your caption files](https://quuz.org/webvtt/) + ### JavaScript #### Quick setup @@ -198,11 +203,6 @@ Passing just the options object: plyr.setup(options); ``` -### Captions -WebVTT captions are supported. To add a caption track, check the HTML example above and look for the `<track>` element. - -Be sure to [validate your caption files](https://quuz.org/webvtt/) - #### Options Options must be passed as an object to the `setup()` method as above or as JSON in `data-plyr` attribute on each of your target elements (e.g. data-plyr='{ title: "testing" }') - note the single quotes encapsulating the JSON. |