You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,7 @@ The following attributes are supported on both the `<audio>` and `<video>` eleme
242
242
#### Captions
243
243
244
244
-**data-captions-position** - optional; specify default position of captions relative to the video (either "below" or "overlay"; "below" is the default if not specified). Users can override this setting in Captions Preferences.
245
+
-**data-state-captions** - optional; "on" or "off". Captions are on by default if they're available, but this allows website owners to override that setting. If users enable captions, their preference will be saved in a cookie, and that will override the default setting on future visits.
245
246
246
247
#### Transcript
247
248
@@ -383,7 +384,7 @@ available, add a **data-desc-src** attribute to the `<source>` element for
383
384
that video. The value of this attribute is a path pointing to the
384
385
described version of the video. With this method, the described version
385
386
of the video can be played instead of the non-described version, and the
386
-
two versions can be swapped with clicking the "D" button on the
387
+
two versions can be swapped with clicking the "Descriptions" button on the
387
388
controller.
388
389
389
390
If descriptions are available using either of the above methods, a
@@ -406,6 +407,9 @@ by screen readers or browsers (for example, if the sole video source is a descr
406
407
In such cases, use **data-descriptions-audible="false"** to prevent browsers and screen readers
407
408
from announcing the description text.
408
409
410
+
If description is available through either of the above methods, it is off by default and users must enable it using the "Descriptions" button on the player control. Website owners can override
411
+
this setting and change the default state to "on" using **data-state-descriptions="on"**. If users have turned descriptions off on the same website, their preference will be saved in a cookie, and that will override the default setting on future visits.
412
+
409
413
#### Sign language
410
414
411
415
Sign language translation is supported in a separate video player,
0 commit comments