aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@selz.com>2016-02-04 14:59:59 +1100
committerSam Potts <sam@selz.com>2016-02-04 14:59:59 +1100
commit6b70c4b49abbfbfb23aaa6681e261be24a4de3f2 (patch)
tree10af580274d4f963560ac5f77a1737f437af1579
parentd8fb876c81a5cd664017dd034ef76d43408a1ce0 (diff)
downloadplyr-6b70c4b49abbfbfb23aaa6681e261be24a4de3f2.tar.lz
plyr-6b70c4b49abbfbfb23aaa6681e261be24a4de3f2.tar.xz
plyr-6b70c4b49abbfbfb23aaa6681e261be24a4de3f2.zip
Update readme.md
-rw-r--r--readme.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 2ed1aba2..d756d09d 100644
--- a/readme.md
+++ b/readme.md
@@ -468,7 +468,18 @@ Here's a list of the methods supported:
Get/Set the media source.
<br><br>
<strong>array</strong><br>
- <code>.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])`</code><br>
+ <pre><code>.source([
+ {
+ src: "/path/to/video.webm",
+ type: "video/webm",
+ ...more attributes...
+ },
+ {
+ src: "/path/to/video.mp4",
+ type: "video/mp4",
+ ...more attributes...
+ }
+ ])`</code></pre><br>
This will inject a child `source` element for every element in the array with the specified attributes. `src` is the only required attribute although adding `type` is recommended as it helps the browser decide which file to download and play.
<br><br>
<strong>YouTube</strong><br>