question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Muted video still pauses playing Android audio

See original GitHub issue

Current behavior

Going to a screen with the Video component displayed causes any background music to stop playing on the Android device.

Reproduction steps

v3.2.0

Add the component to a screen with muted={true}:

         <Video
                    muted={true}
                    source={...}
                    style={...}
                />

Expected behavior

I would expect the Video component to not affect any background audio at all.

Platform

Which player are you experiencing the problem on:

  • Android

Related

#1103

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

8reactions
chris35469commented, Dec 3, 2019

Anyone still having related issues try changing the following in the /android/settings.gradle file:

project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')

to

project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')

5reactions
kelvinosheacommented, Jan 22, 2019

Also encountering this issue. Fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Muted video still pauses playing Android audio #1201 - GitHub
Current behavior. Going to a screen with the Video component displayed causes any background music to stop playing on the Android device.
Read more >
SOLVED! - Video Stops Playing After a Few Seconds Android
It's not normal that video stops playing after a few seconds in Android mobile. There are reasons and solutions which are discussed in...
Read more >
8 Ways to Fix Video Sound Not Working on Android
Fix 1: The Volume Settings ... You might have turned down the sound and set the device to silent mode for any reason....
Read more >
Audio stops playing on Galaxy mobile devices or accessories
Audio stops playing on Galaxy mobile devices or accessories · Adjust the Battery settings. Open Settings, and then tap Apps. · Remove the...
Read more >
Solved: Music stops playing when I open another app
Music should not stop if you go over a video with it's sound set to Mute on the various social media apps, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found