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

What is the best practice for videos with no audio? #4638

Closed
adamraine opened this issue Nov 13, 2024 · 3 comments
Closed

What is the best practice for videos with no audio? #4638

adamraine opened this issue Nov 13, 2024 · 3 comments
Labels
question ungroomed Ticket needs a maintainer to prioritize and label

Comments

@adamraine
Copy link

adamraine commented Nov 13, 2024

Product

axe-core

Question

GoogleChrome/lighthouse#16244

In reference to this axe rule about video captions.

The use case presented in this issue involves a <video> element which does not include any audio and is just there to show a QR code. Since there is no audio, should there still be captions for the video?

@adamraine adamraine added question ungroomed Ticket needs a maintainer to prioritize and label labels Nov 13, 2024
@Jeremy-Rivera
Copy link
Contributor

Jeremy-Rivera commented Nov 14, 2024

I would presume that it wouldn't be 'required' to leave the captions on since there is no auditory information to convey. The principle is:

"The captions should convey all meaningful auditory information in the video including dialogue, musical cues, sound effects, and other relevant information for deaf users."
[https://dequeuniversity.com/rules/axe/4.10/video-caption]

Granted, it’s still essential to ensure the video content is accessible by providing a text alternative or a description that conveys the purpose of the video. This could be done by:

  • Adding a text description nearby (e.g., “QR code for access”).
  • Including a descriptive aria-label or alt text that mentions what the video displays.
    [https://www.section508.gov/create/captions-transcripts/]

example:

<video width="300" height="200" aria-label="QR code for access">
    <source src="myVideo.mp4" type="video/mp4">
</video>

@adamraine
Copy link
Author

adamraine commented Nov 14, 2024

Seems reasonable, does the axe-core rule allow for this? Would a video with an aria-label but no captions be flagged by axe-core?

@WilcoFiers
Copy link
Contributor

Axe-core does not fail videos without captions, although it reports them as needing manual review. Most videos do need captions, so when they don't have it, that is something something to look at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ungroomed Ticket needs a maintainer to prioritize and label
Projects
None yet
Development

No branches or pull requests

3 participants