Skip to content

Read AccessibilityManager to automatically select audio description track Android 13 #2620

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

StaehliJ
Copy link

As describe in the Accessibility best practices for Android TV, users can enable audio descriptions across all apps on Android 14 (API level 33) and higher.

The idea of this PR is to kinda replicated the behavior done with text track with CaptionManager but for audio tracks. It reads the value from AccessibilityManager.isAudioDescriptionRequested() to force the role flags to (ROLE_FLAG_DESCRIBES_VIDEO | ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND).

It doesn't changes the preferred audio languages and the other parameters.

Changes

  • Introduce TrackSelectionParameters.usePreferredTextLanguagesAndRoleFlagsFromCaptioningManager

@StaehliJ StaehliJ force-pushed the android-13-audio-accessibility branch from cc94992 to fc558f6 Compare July 18, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants