aboutsummaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 98c845f0..156e77f6 100644
--- a/readme.md
+++ b/readme.md
@@ -257,7 +257,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke
<tr>
<td><code>controls</code></td>
<td>Array</td>
- <td><code>['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'fullscreen']</code></td>
+ <td><code>['play-large', 'play', 'speed-up', 'progress', 'current-time', 'mute', 'volume', 'captions', 'fullscreen']</code></td>
<td>Toggle which control elements you would like to display when using the default controls html. If you specify a <code>html</code> option, this is redundant. The default value is to display everything.</td>
</tr>
<tr>
@@ -382,7 +382,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke
<td><code>captions</code></td>
<td>Object</td>
<td>&mdash;</td>
- <td>One property <code>defaultActive</code> which toggles if captions should be on by default. The default value is <code>false</code>.</td>
+ <td>Two properties: <code>defaultActive</code> which toggles if captions should be on by default. The default value is <code>false</code>. The <code>selectedIndex</code> property sets the default starting index for the caption tracks.</td>
</tr>
<tr>
<td><code>fullscreen</code></td>
@@ -396,6 +396,12 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke
<td>&mdash;</td>
<td>Two properties; <code>enabled</code> which toggles if local storage should be enabled (if the browser supports it). The default value is `true`. This enables storing user settings, currently it only stores volume but more will be added later. The second property <code>key</code> is the key used for the local storage. The default is <code>plyr_volume</code> until more settings are stored.</td>
</tr>
+ <tr>
+ <td><code>speeds</code></td>
+ <td>Array</td>
+ <td>[1.0, 1.5, 2.0, 0.5]</td>
+ <td>Playback speed list.</td>
+ </tr>
</tbody>
</table>
@@ -588,6 +594,11 @@ Here's a list of the methods supported:
<td>Toggles whether captions are enabled.</td>
</tr>
<tr>
+ <td><code>setCaptionIndex()</code></td>
+ <td>Number</td>
+ <td>Set the active track to the provided number. Index starts with 0.</td>
+ </tr>
+ <tr>
<td><code>toggleFullscreen()</code></td>
<td>Event</td>
<td>Toggles fullscreen. This can only be initiated by a user gesture due to browser security, i.e. a user event such as click.</td>