TheWidlarzGroup/react-native-video

[BUG]: `muted` not working on Android 12/13 for Samsung and Pixel devices

Aperta

#4162 aperta il 11 set 2024

 (5 commenti) (0 reazioni) (0 assegnatari)Kotlin (3027 fork)batch import
AcceptedMissing ReproNewer Version AvailablePlatform: AndroidV6bugdifficulty: mediumhelp wantedtriaged

Metriche repository

Star
 (7677 stelle)
Metriche merge PR
 (Merge medio 2g 3h) (11 PR mergiate in 30 g)

Descrizione

What happened?

muted video still plays audio when loaded on Samsung/Pixel devices with Android 12 or 13. Please note that we have attempted to load the same video on other devices like Huawei/Xiaomi/Oppo with similar Android versions and they work fine on them.

Workaround

We have applied a workaround with selectedAudioTrack={{type: SelectedTrackType.DISABLED}} configuration. It isn't ideal, but it works for us.

Steps to reproduce

  1. Load a muted video on a Samsung/Pixel device running Android 12 or 13.
  2. Notice the video still plays audio when loaded.

Reproduction repository

No response

react-native-video version

6.5.0

react-native version

No response

react-native-nitro-modules version

No response

Platforms

Android

OS version

Android 13

Device

Real device

Architecture

Old Architecture

Expo

No response

Last working version

No response

Media / source type

No response

Guida contributor