react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Android: Use captions, Caption text size and Caption styles

Open amarlette opened this issue 4 years ago • 1 comments

Requires API Proposal

This issue may require a new API, or a change to an existing API. An API proposal should be added and discussed before proceeding with implementation. The API proposal can be added in the comments of this issue or linked as a separate issue.

Description

The AccessibilityInfo API supports getting the values of many system-level accessibility settings, but caption settings are not one of them. Both iOS and Android have support for various caption-related settings, such as whether they are enabled by default, the text size and color, the text style, and the background color.

Building any experience in React Native that relies on audio being played should have a captioned alternative, and it should use these caption settings for the default display.

React Native version:

v0.63

Expected Behavior

The AccessibilityInfo API should have a way to query the various caption settings.

Android Details

The CaptioningManager class (https://developer.android.com/reference/android/view/accessibility/CaptioningManager) is the way you can get access to the value of these settings.

iOS Details

On iOS the Media Accessibility Framework (https://developer.apple.com/documentation/mediaaccessibility/) provides these values.

amarlette avatar Feb 03 '21 23:02 amarlette

While this is technically an issue, it's not very common that anyone would need to query this data in React Native, as it's unlikely they will be rendering captions themselves with RN, rather than in a video player itself.

blavalla avatar Jan 11 '23 19:01 blavalla

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 07 '23 05:11 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Nov 14 '23 05:11 github-actions[bot]