video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Add ARIA region role and ARIA label to player element

Open chrisauclair opened this issue 10 years ago • 5 comments

If a document contains multiple players, screen readers can inadvertently combine some of the controls. A specific example occurs when using JAWS in IE 9+.

The solution is to add a "role" attribute with the value "region" to the player element, and also add an ARIA label identifying the player as an "audio player" or "video player", depending on the type. This has the benefit of adding the player to the screen reader navigation, and also fixing any bugs with the controls.

chrisauclair avatar Mar 23 '16 21:03 chrisauclair

Identifying a region as a video or audio player eliminates the need to label controls as "video control name" ("video progress bar" comes to mind). That's redundant, because the SR user will know they're in a "video" region. It will also eliminate the current issue where some audio controls identify as video controls because "video" is hardcoded into their label.

chrisauclair avatar Mar 23 '16 21:03 chrisauclair

Makes sense to me. @OwenEdwards thoughts? Care to submit a PR?

gkatsev avatar Mar 28 '16 18:03 gkatsev

What I was thinking of in #2770 was essentially this coupled with the specific Title functionality from the videojs Dock plug-in. So yes, I think it makes sense.

OwenEdwards avatar Mar 28 '16 21:03 OwenEdwards

@gkatsev , I can submit a PR that fixes this when I get a chance, since I've already fixed it locally.

chrisauclair avatar Mar 28 '16 23:03 chrisauclair

Closed by #3227.

gkatsev avatar Apr 05 '16 17:04 gkatsev