TheWidlarzGroup/react-native-video

[Feature]: Localize not change

Open

#3.686 aberto em 17 de abr. de 2024

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)Kotlin (3.027 forks)batch import
Missing ReproNewer Version AvailablePlatform: iOSV6bugdifficulty: easygood first issuepriority: lowtriaged

Métricas do repositório

Stars
 (7.677 stars)
Métricas de merge de PR
 (Mesclagem média 2d 3h) (11 fundiu PRs em 30d)

Description

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)

Guia do colaborador