TheWidlarzGroup/react-native-video

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

Open

#4,162 opened on Sep 11, 2024

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Kotlin (3,027 forks)batch import
6.x.xAcceptedMissing ReproNewer Version AvailablePlatform: AndroidRepro ProvidedV6bugdifficulty: mediumhelp wantedpriority: mediumtriaged

Repository metrics

Stars
 (7,677 stars)
PR merge metrics
 (Avg merge 2d 3h) (11 merged PRs in 30d)

Description

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