Skip to content

πŸŽ₯ Make videos programmatically with React

Add standard media-player keyboard shortcut appendix to RGAA and VPAT templates

Aleksej Dixf0b7ef22b601
diff --git a/packages/compliance/a11y/RGAA-audit-template.md b/packages/compliance/a11y/RGAA-audit-template.md
index 93c3e6b48a..a2a9c896e9 100644
--- a/packages/compliance/a11y/RGAA-audit-template.md
+++ b/packages/compliance/a11y/RGAA-audit-template.md
@@ -292,3 +292,31 @@ Primary gaps are with {{list primary non-conformant themes}}. The application pe
_This report was prepared on the basis of RGAA v.4.1.2 criteria and tests._
_Auditor: {{Name}} ({{internal/external}}) β€” {{OS, Browser + Screen reader}}_
_Reference: https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/_
+
+---
+
+## Appendix β€” Standard media-player keyboard shortcuts
+
+When auditing a video/audio player component (Themes 4, 7, 12), check against the de-facto standard shortcut set used by YouTube, Vimeo, Able Player, Video.js, OzPlayer, and native `<video controls>`:
+
+| Key | Action |
+| --------------------- | ----------------------------------------------- |
+| `Space` / `K` | Play-pause |
+| `←` / `β†’` | Seek βˆ’5 s / +5 s |
+| `Shift+←` / `Shift+β†’` | Fine seek (Β±1 s or per frame) |
+| `PageUp` / `PageDown` | Seek Β±10 s |
+| `Home` / `End` | Jump to start / end |
+| `0`–`9` | Jump to 0 %, 10 %, … 90 % (YouTube pattern) |
+| `↑` / `↓` | Volume Β±5 % |
+| `M` | Mute toggle |
+| `F` | Fullscreen toggle |
+| `C` | Captions toggle |
+| `<` / `>` | Playback rate down / up |
+
+Slider requirements for seek and volume controls: `role="slider"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext` (for human-readable time / percentage). Arrow keys on a focused slider natively adjust `aria-valuenow` by 1. Container should be focusable (`tabindex="0"`) and announce its purpose via `aria-label`.
+
+References:
+
+- [WAI-ARIA Authoring Practices β€” Slider pattern](https://www.w3.org/WAI/ARIA/apg/patterns/slider/)
+- [Able Player keyboard controls](https://ableplayer.github.io/ableplayer/#keyboard)
+- [YouTube player keyboard shortcuts](https://support.google.com/youtube/answer/7631406)
diff --git a/packages/compliance/a11y/VPAT-template.md b/packages/compliance/a11y/VPAT-template.md
index 5bcb520cd8..200c6df8f0 100644
--- a/packages/compliance/a11y/VPAT-template.md
+++ b/packages/compliance/a11y/VPAT-template.md
@@ -495,3 +495,33 @@ A public [Accessibility Statement]({{/accessibility}}) is available on the {{Pro
| Criterion | Issue | Affected Pages / Components |
| --------- | ----- | --------------------------- |
| | | |
+
+---
+
+## Appendix β€” Standard media-player keyboard shortcuts
+
+When a product includes a video or audio player, check against the de-facto standard shortcut set used by YouTube, Vimeo, Able Player, Video.js, OzPlayer, and native `<video controls>`:
+
+| Key | Action |
+| --------------------- | ----------------------------------------------- |
+| `Space` / `K` | Play-pause |
+| `←` / `β†’` | Seek βˆ’5 s / +5 s |
+| `Shift+←` / `Shift+β†’` | Fine seek (Β±1 s or per frame) |
+| `PageUp` / `PageDown` | Seek Β±10 s |
+| `Home` / `End` | Jump to start / end |
+| `0`–`9` | Jump to 0 %, 10 %, … 90 % (YouTube pattern) |
+| `↑` / `↓` | Volume Β±5 % |
+| `M` | Mute toggle |
+| `F` | Fullscreen toggle |
+| `C` | Captions toggle |
+| `<` / `>` | Playback rate down / up |
+
+Related WCAG criteria: **2.1.1 Keyboard**, **2.1.4 Character Key Shortcuts** (provide a mechanism to turn off or remap), **4.1.2 Name, Role, Value** (sliders), **4.1.3 Status Messages** (announce seek / volume / mute changes).
+
+Slider requirements for seek and volume controls: `role="slider"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext` (for human-readable time / percentage). Arrow keys on a focused slider natively adjust `aria-valuenow` by 1. Container should be focusable (`tabindex="0"`) and announce its purpose via `aria-label`.
+
+References:
+
+- [WAI-ARIA Authoring Practices β€” Slider pattern](https://www.w3.org/WAI/ARIA/apg/patterns/slider/)
+- [Able Player keyboard controls](https://ableplayer.github.io/ableplayer/#keyboard)
+- [YouTube player keyboard shortcuts](https://support.google.com/youtube/answer/7631406)