Skip to content

Commit 8222b59

Browse files
committed
Update readme.txt
1 parent 5b114a8 commit 8222b59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/readme.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ The `[ableplayer]` shortcode supports the following attributes.
6060
* `youtube-desc-id` - YouTube URL or ID of a described version of the video
6161
* `vimeo-desc-id` - Vimeo URL or ID of a described version of the video
6262

63+
All captions, subtitles, chapters, and descriptions tracks must be in `.vtt` format. The shortcode only supports a single set of values for each type of data; to add multiple tracks of the same type you can use the Video block or add custom HTML.
64+
65+
Either an attachment ID or a URL for your track `.vtt` is required; you can optionally add a language code and a custom label:
66+
67+
`captions="/path/to/file.vtt|es|Español"`
68+
69+
By default, the language will be your WordPress installation language, with the labels "Captions", "Subtitles", "Chapters" or "Audio Description".
70+
6371
= Player Options =
6472

6573
* `youtube-nocookie` - "true" or "false" (use "true" to embed YouTube untracked, for added privacy)

0 commit comments

Comments
 (0)