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
The progress bar uses aria-valuetext to convey the current time to screen reader users. Visually, the current time is displayed as a point on the progress bar line where the length of the bar represents the duration of the video. Screen reader users should also be presented with this information from the progress bar, for example as "01:23 of 12:34", rather than just "01:23" (and then needing to navigate through the control bar for the duration separately).
The text was updated successfully, but these errors were encountered:
Yeah, that's how more advanced i18n systems work. Might be a little too advanced to do at this point, so just being able to localize the "of" would be enough, I guess. It'd be nice to get this into v6, though - some other video players have it ;-)
It allows you to use string as an key for the language files but have a default value that's different. In this case, we have a key of progress bar timing: currentTime={1} duration={2} which is used so that we have a descriptive key to what is happening. The default value matches that default value in en.json: {1} of {2}. The reason for the default value is so that the translation uses {1} of {2} for the actual localization without requiring en.json to be included in videojs by default.
Fix#4024.
Description
The progress bar uses
aria-valuetext
to convey the current time to screen reader users. Visually, the current time is displayed as a point on the progress bar line where the length of the bar represents the duration of the video. Screen reader users should also be presented with this information from the progress bar, for example as "01:23 of 12:34", rather than just "01:23" (and then needing to navigate through the control bar for the duration separately).The text was updated successfully, but these errors were encountered: