TheWidlarzGroup/react-native-video

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

Open

#4.162 geöffnet am 11. Sept. 2024

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (3.027 Forks)batch import
6.x.xAcceptedMissing ReproNewer Version AvailablePlatform: AndroidRepro ProvidedV6bugdifficulty: mediumhelp wantedpriority: mediumtriaged

Repository-Metriken

Stars
 (7.677 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 3h) (11 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide