diff options
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -369,7 +369,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke <td><code>captions</code></td> <td>Object</td> <td>—</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> @@ -576,6 +576,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> |