Questions tagged [react-native-sound]
79 questions
1
vote
1 answer
undefined is not an object (evaluating 'RNSound.IsAndroid')
I am trying to get react-native-sound to work on my react-native app but I keep getting this error: undefined is not an object (evaluating 'RNSound.IsAndroid').
I have noticed that any people have received this error and I found a relevant question…

HarryShotta
- 347
- 1
- 15
1
vote
0 answers
RNSound.IsAndroid error when trying to play sound
I recently got into react-native and after connecting it to my aws database and ... I have been trying to play some audios I had stored in my bucket. For this I tried using react-native-sound but once i import it I get the error
undefined is not an…

jibidijib
- 407
- 2
- 6
- 16
1
vote
1 answer
How to show Audio Player in UI react-native Flatlist
I have number of URLs which getting from server response. And I have to display that in Flatlist, There are number of links. Each Flatlist, I have to show some data and then bottom of the cell needs to show player with progress bar.
import Sound…

Anilkumar iOS - ReactNative
- 3,543
- 9
- 54
- 109
1
vote
2 answers
React native Play an mp3 sound from http without using native components
Is there any way to reproduce a sound that is on http without using native Android/IOS components?
I found this module react-native-sound, but it uses native parts and I wanted to know if there is a way to avoid being able to use them.

Paul
- 3,644
- 9
- 47
- 113
1
vote
0 answers
Controlling music playback on iOS with react native?
I used to have an app that would create a sprint workout playlist - it would start a song 30 seconds in, play 1 minute, then move to the next song. I'm looking to create something similar.
I want to access and play songs from the users built in…

Toni K.
- 38
- 5
1
vote
2 answers
react-native-sound does not work in production build for iOS but works within emulator and for production android
I'm working on a React Native application which plays back voicemails. I'm running into an issue with our production app. It does not play back the voicemails on the production iOS or testflight builds, however it will play back on the production…

brooks
- 21
- 1
- 6
1
vote
0 answers
How can i loop all audios from playlist with react native sound
I am trying to make an audio player using react native and react-native-sound.
I want to loop all audios from playlist to play them one by one for a single time. How can I do that?
here is my code:
const songs = [
{
title: 'one',
…

Shihab Bin Ali
- 23
- 4
1
vote
0 answers
Rn sound issue:play in background but stop music on phone call
I am building an app using react native sound. Everything works fine.background music is playing well but it also plays while phone call is in progress. When phone ringing music stops but resumes as soon as call is received.
Also I am using…

KRISHNA YADAV
- 43
- 7
1
vote
1 answer
sound is not played using react-native-sound
Im new to react-native and Im building an app to play sounds on button press and I couldnt achieve this, is it because of errors in my code ? Also pls suggest the solution for playing the sounds and suggest the corrections
Here's my code:
import…

dimpuW
- 571
- 1
- 6
- 11
0
votes
0 answers
React Native Sound not working on files from s3 bucket
I am fetching sound file from s3 bucket in my react native app, the file is in .wav format, but whenever I try to play it using react-native-sound, it isn't playing. When I replaced my s3 link with this sample link, it works just fine:…

ayus
- 13
- 4
0
votes
0 answers
How can I prevent multiple sounds from overlapping in react native (react-native-sound or react-native-use-sound) with useEffect hook
I am a react native beginner struggling with concurrency.
I would like to enforce within the handlePlay function that no new sound is played while the current sound is playing.
So if sound1.mp3 is playing now and the handlePlay function is called,…

scotjam1981
- 11
- 1
0
votes
0 answers
Can't change the output of the audio speakers of android (from loud speaker to ear speaker)
User can turn on some sounds. That sounds gonna play on loud(bottom) speaker. If proximity sensor says that the user's ear is closer to top speaker I need to change the speaker to top ear speaker. I'm using react-native-sound library.
I could easily…

Ani
- 68
- 6
0
votes
0 answers
Merge selected audio with camera recorded video in React Native
I am trying to merge a different audio (like song audio) with the camera recorded video in react native.
Tiktok like video making functionality.
Is there any way to merge audio with the video to preview the recorded video with selected audio in…

RoshaanAli
- 136
- 1
- 8
0
votes
0 answers
React Native: How to play local .midi files?
I have a React Native application in which I am trying to play different sounds with different extesions like .mp3, .wav, .midi. My issue is that I can't access the midi file that is stored locally in assets folder.
I tried by importing directly…

poPaTheGuru
- 1,009
- 1
- 13
- 35
0
votes
0 answers
React Native Sound Recorder Play on Browser
I am recording an audio message on React Native app using 'react-native-sound-recorder' and uploaded it to s3 bucket which gives me uploaded URL. Return URL play audio on app perfectly but same URL if I try to open in browser it's not…

Ankit Rajpoot
- 87
- 1
- 3
- 12