Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WCAG 1.4.2] Support audio control #64

Open
wants to merge 4 commits into
base: wcag-1_4_1/update-colors-per-new-requirements
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/guidelines/platforms/android/guideline_percievable_android.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,25 @@ Make sure that color isn't the only visual cue used for conveying information, i

_Important to note is that this guideline primarily depends on accessible design._

### Audio control (WCAG 1.4.2 - Level A)

If any audio plays automatically for more than 3 seconds, there should be [an option to pause or stop the audio](https://developer.android.com/guide/topics/ui/accessibility/principles#media-content), or a way to adjust the audio volume independently from the overall system volume.

> This guideline covers _1.4.2 Audio control - Level A of the WCAG standard._

:white_check_mark: **Success technique(s)**

- Playing sounds only on user request
- Providing a way to pause or stop the sound

[Media3 ExoPlayer](https://developer.android.com/media/media3/exoplayer) provides built-in support for controlling audio playback, including pausing, stopping, and adjusting the volume so it is preferred to use it for media playback. Implementation details can be found in the official documentation for [ExoPlayer](https://developer.android.com/media/media3/exoplayer/hello-world).

:no_entry_sign: **Failures**

- Playing sounds that last longer than three seconds without the option to pause or stop them

_Important to note is that this guideline also depends on the accessible design._

## Other perceivable guidelines

This section includes guidelines that may not apply to the Android platform or fall under the mobile team’s responsibilities. However, please keep in mind that these guidelines still need to be met."
Expand Down