aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-01-18 17:35:32 +1100
committerSam Potts <me@sampotts.me>2016-01-18 17:35:32 +1100
commitc23c150fe99bd7127829320610d124c6a34ecb48 (patch)
tree08fb947ffcf8cf71f14d9952614276c33e7702ad
parent2e5bdb338eee71f777bc3898cc57875b0e705dfa (diff)
parentc51ef05067ef0c9be8ccdac0069b7ecdca8fed3b (diff)
downloadplyr-c23c150fe99bd7127829320610d124c6a34ecb48.tar.lz
plyr-c23c150fe99bd7127829320610d124c6a34ecb48.tar.xz
plyr-c23c150fe99bd7127829320610d124c6a34ecb48.zip
Merge branch 'master' of https://github.com/Selz/plyr
-rw-r--r--readme.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index f0896467..cd398a7c 100644
--- a/readme.md
+++ b/readme.md
@@ -134,13 +134,19 @@ And the same for `<audio>`
</div>
```
-For YouTube, Plyr uses the standard YouTube API markup (an empty `<div>`):
+For YouTube and Vimeo, Plyr uses the standard YouTube API markup (an empty `<div>`):
```html
<div class="plyr">
- <div data-video-id="L1h9xxCU20g" data-type="youtube"></div>
+ <div data-video-id="bTqVqk7FSmY" data-type="youtube"></div>
</div>
```
+```html
+<div class="plyr">
+ <div data-video-id="143418951" data-type="vimeo"></div>
+</div>
+```
+
#### Cross Origin (CORS)
You'll notice the `crossorigin` attribute on the example `<video>` and `<audio>` elements. This is because the media is loaded from another domain. If your media is hosted on another domain, you may need to add this attribute.