I have video player in my app, which is working fine. But there is one problem when I play the video , if there is another sound playing in the background , it keeps on playing. The ideal scenario should be that background sound should stop playing and when I pause video then background sound should start playing again. I don't know how to handle such scenarios. Any help would be appreciated
Stop background sound if Sound id played from react native app
1.9k Views Asked by Paras Watts At
1
There are 1 best solutions below
Related Questions in REACT-NATIVE
- React Native: detect if UIVisualEffectView is supported
- Prevent Chrome debugger from stealing focus in React Native
- React-native upload image to amazons s3
- react-native update NavigatorIOS component's props
- promise – can't find variable process
- Using React Native within existing iOS app for some views only
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- error in xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"
- DeviceEventEmitter stops emitting events to application when screen locked
- How to rename react-native entry file (index.ios.js)
- react-native component lifecycle methods not firing on navigation
- How to use comments in React
- react-native propagate changes in props through ListView and Navigator
- How do i use the iOS shake gesture with react native?
- TouchableHighlight won't accept press events while keyboard is open
Related Questions in REACT-NATIVE-SOUND
- sound is not played using react-native-sound
- Stop background sound if Sound id played from react native app
- Volume oscillating in React Native
- Can React Native Track-Player play url without .mp3 extension?
- React Native syncing sound with Animated
- Playing an audio file with react-native-sound-player
- react-native-sound always showing current playback time as 0
- React Native how to play a sound after an "onPress"?
- react-native-sound does not work in production build for iOS but works within emulator and for production android
- Android is not ducking sound (react-native-sound)
- react-native-sound does not work on ios emulator
- What is the simplest way to create a music player using react-native-sounds with play & pause toggle controls in same button?
- react-native-sound not playing audio at first time
- Storing recorded sound clip on server using PHP in React Native
- React Native Sound change speed time
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
On iOS you can use
AVAudioSessionCategoryAmbientto set how should sounds mix. Here is the list for possible options. Here and Here are the methods for react-native-sound for how you can set.