diff options
author | Sam Potts <sam@selz.com> | 2016-02-21 14:34:49 +1100 |
---|---|---|
committer | Sam Potts <sam@selz.com> | 2016-02-21 14:34:49 +1100 |
commit | 188a2e72eb8c32da5223712c2488441729cc5c83 (patch) | |
tree | 40d48b0000f9a49c66c160de1785e44bfd25bf18 | |
parent | b7a14be2ac77a402a9ee7f44057de0b683f919a0 (diff) | |
download | plyr-188a2e72eb8c32da5223712c2488441729cc5c83.tar.lz plyr-188a2e72eb8c32da5223712c2488441729cc5c83.tar.xz plyr-188a2e72eb8c32da5223712c2488441729cc5c83.zip |
Update readme.md
-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. |