TheWidlarzGroup/react-native-video

[Feature]: Localize not change

Open

#3,686 创建于 2024年4月17日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)Kotlin (3,027 fork)batch import
Missing ReproNewer Version AvailablePlatform: iOSV6bugdifficulty: easygood first issuepriority: lowtriaged

仓库指标

Star
 (7,677 star)
PR 合并指标
 (平均合并 2天 3小时) (30 天内合并 11 个 PR)

描述

What happened?

When setting accessibilityLanguage="es-ES" on the <Video> component, the accessibility (VoiceOver) is still speaking in English instead of Spanish.

Component usage:

<Video
  accessibilityLanguage="es-ES"
  controls
  ignoreSilentSwitch={IgnoreSilentSwitchType.IGNORE}
  key={urlLive}
  muted={!isFocus}
  onError={e => {
    console.error('Error en el video', e);
    setIsError(true);
  }}
  onFullscreenPlayerDidDismiss={() => {
    Orientation.lockToPortrait();
    videoRef.current?.dismissFullscreenPlayer();
  }}
  onFullscreenPlayerDidPresent={() => {
    Orientation.unlockAllOrientations();
  }}
  onFullscreenPlayerWillDismiss={() => {
    Orientation.lockToPortrait();
    videoRef.current?.dismissFullscreenPlayer();
  }}
  onLoad={() => {
    setIsLoading(false);
    setIsError(false);
  }}
  onLoadStart={() => {
    setIsLoading(true);
  }}
  pictureInPicture={false}
  playInBackground={false}
  ref={videoRef}
  resizeMode={ResizeMode.CONTAIN}
  source={{
    headers: {
      Authorization: Authorization(
        REACT_APP_API_USER,
        REACT_APP_API_PASSWORD,
      ),
      'User-Agent': userAgent,
    },
    uri: urlLive,
  }}
  style={{ width: '100%', aspectRatio: 16 / 9 }}
/>

Steps to reproduce

  1. Render a <Video> component with the prop accessibilityLanguage="es-ES".
  2. Enable VoiceOver / accessibility on an iOS device.
  3. Focus the video element and observe that the accessibility voice speaks in English instead of Spanish.

Reproduction repository

No response

react-native-video version

6.0.0-beta

react-native version

No response

react-native-nitro-modules version

No response

Platforms

iOS

OS version

No response

Device

No response

Architecture

Old Architecture

Expo

No response

Last working version

No response

Media / source type

HLS (.m3u8)

贡献者指南