TheWidlarzGroup/react-native-video

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

Open

#4,162 创建于 2024年9月11日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)Kotlin (3,027 fork)batch import
6.x.xAcceptedMissing ReproNewer Version AvailablePlatform: AndroidRepro ProvidedV6bugdifficulty: mediumhelp wantedpriority: mediumtriaged

仓库指标

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

描述

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

贡献者指南