feat: Add Audio Description Support for Video Accessibility#222
Closed
abhalsod-sonata wants to merge 1 commit intorelease-ulmofrom
Closed
feat: Add Audio Description Support for Video Accessibility#222abhalsod-sonata wants to merge 1 commit intorelease-ulmofrom
abhalsod-sonata wants to merge 1 commit intorelease-ulmofrom
Conversation
6b28000 to
fa1dd75
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This PR implements audio description (AD) functionality for video content in Open edX, enhancing accessibility compliance with WCAG 2.1 Success Criterion 1.2.5 (Audio Description - Prerecorded). Audio descriptions provide narrated explanations of visual elements in videos, making content accessible to users with visual impairments.
Key Changes:
lms/templates/video.html): Added a conditional<audio>element for audio description tracks, rendered only when the feature is enabled.xmodule/js/src/video/01_initialize.js): Extended configuration to handle audio description preferences, including persistence via localStorage and fallback to server-side user state.xmodule/js/src/video/09_video_audio_description.js): A comprehensive JavaScript module that:<audio>element synchronized with the main video.xmodule/js/src/video/10_main.js): Registered the newVideoAudioDescriptionmodule in the video player initialization sequence.xmodule/static/css-builtin-blocks/VideoBlockDisplay.css): Added CSS for the AD toggle button, including active/disabled states, hover/focus effects, and proper positioning in the secondary controls.How It Works:
Testing Notes:
Related Ticket: TNL2-576
This feature improves the learning experience for visually impaired users by providing essential context for video-based educational content.