aboutsummaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
authorSam Potts <sam@selz.com>2016-01-14 09:35:01 +1100
committerSam Potts <sam@selz.com>2016-01-14 09:35:01 +1100
commitdebdf112cc4e473bc41ce57590dfd4b5812cf23d (patch)
tree83c6b73c4f48298134886bb6a1a3494bd083c850 /readme.md
parent533af96c4f99da01f5157e02859d667dac92519f (diff)
parent533bd173b2d011a496a6d486a699296425ead7a7 (diff)
downloadplyr-debdf112cc4e473bc41ce57590dfd4b5812cf23d.tar.lz
plyr-debdf112cc4e473bc41ce57590dfd4b5812cf23d.tar.xz
plyr-debdf112cc4e473bc41ce57590dfd4b5812cf23d.zip
Merge pull request #140 from gurupras/gurupras-develop
Updated API function 'plyr.source()' to get media source
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index e6878202..ce647687 100644
--- a/readme.md
+++ b/readme.md
@@ -356,10 +356,10 @@ Here's a list of the methods supported:
</tr>
<tr>
<td><code>source(...)</code></td>
- <td>String or Array</td>
+ <td>String or Array or (null|undefined)</td>
<td>
- Set the media source.
- <br><br>
+ Get/Set the media source.
+ <br><br>
<strong>string</strong><br>
<code>.source("/path/to/video.mp4")</code><br>
This will set the <code>src</code> attribute on the <code>video</code> or <code>audio</code> element.
@@ -370,6 +370,9 @@ Here's a list of the methods supported:
<br><br>
<strong>YouTube</strong><br>
Currently this API method only accepts a YouTube ID when used with a YouTube player. I will add URL support soon, along with being able to swap between types (e.g. YouTube to Audio or Video and vice versa.)
+ <br><br>
+ <strong> null or undefined </strong><br>
+ Returns the current media source. Works for both native videos and embeds.
</td>
</tr>
<tr>
@@ -504,3 +507,4 @@ Also these links helped created Plyr:
## Copyright and License
[The MIT license](license.md).
+