Questions tagged [react-native-sound]
79 questions
2
votes
1 answer
which react native library should i use to access music files locally stored on android
I want to access and run music files stored locally on android and ios devices.
I tried using react-native-fs but couldn't managed to access. So are there any other better libraries available to use it.

HSBP
- 735
- 2
- 8
- 22
2
votes
1 answer
play audio file without needing import/require
I'm trying to play and audio file but I'd like to load the file dynamically without having to hardcode the import for each file on my project folder assets/audio.
The code below is working when I use the import, but not when I use the "file".
const…

Artur Carvalho
- 6,901
- 10
- 76
- 105
1
vote
3 answers
How to play audio from a URL in React Native app?
I have been trying to play the audio from a Youtube video (or .mp3 URL) in my React Native app. For my purposes, I cannot download the audio files to my device, they need to be streamed from the internet. I tried both Expo AV and…

A. Eddy Nangia
- 11
- 3
1
vote
1 answer
react-native-sound audio is playing but sound not working in android avd how solve this
react-native-sound
tried manual configuration
https://github.com/zmxv/react-native-sound/wiki/Installation
but sound is not audible.
file loaded successfully
audio is playing - but volume sound is not hearing in android avd, `
react-native-sound

Nagaraj sk
- 71
- 8
1
vote
0 answers
react-native-sound not playing audio at first time
I'm using react-native-audio package for my game and I want to play an audio for multiple times as function executed. But It's not working perfectly. Here is my code
import Sound from 'react-native-sound';
export default function App(){
const…

Gursahb Webcyst
- 93
- 8
1
vote
1 answer
Can't play Firebase MP3 URL in React Native
const audio = new Sound(
'https://storage.googleapis.com/chat_bucket_aso/2ihzd4q47l73wmvcb_2.976.mp3',
null,
error => {
setLoadingAudio(false);
if (error) {
console.log('failed to load the sound',…

Aung Kyaw Soe
- 11
- 1
1
vote
0 answers
react-native-sound throws exception in release apk
In IOS it works without issue, in android, its again fine in debug mode,
but in release mode its not working
this is the error message, but not makes sense.. {extra: -2147483648, what: 1}.
here is the code:
const Sound =…

TyForHelpDude
- 4,828
- 10
- 48
- 96
1
vote
0 answers
React native sound mutes user music (Spotify, deezer, etc.)
With react-native-background-timer (2.4.1) and react-native-sound (0.11.1), I play a sound after countdown.
import Sound from 'react-native-sound'
...
Sound.setCategory('Playback')
const soundEnd = new Sound('training.mp3',…

Gaylord.P
- 1,539
- 2
- 24
- 54
1
vote
0 answers
Volume oscillating in React Native
I've created a metronome using react-native, nothing that fancy (pseudo version below)
import Sound from 'react-native-sound'
import tick from './tick.mp3'
sound = new Sound(tick, Sound.MAIN_BUNDLE)
play = function() { sound.play()…

Pedro Bernardes
- 706
- 1
- 8
- 20
1
vote
1 answer
play audio using base64 string in react native
I have encoded audio in base64 string using react-native-fs. Now I want to decode base64 string back to audio format and play in react-native.
import RNFS from 'react-native-fs';
const…

Sayyam abbasi
- 109
- 1
- 8
1
vote
1 answer
React-Native-Sound path for ios file?
I'm curently developping an app on React-Native and I need to play sound.
The fact is that I am on Ubuntu and developing with IntelIJ Idea.
I'm using react-native-sound library to play sounds.
Thanks to this post, I know where I put my .mp3 file for…

Folamie
- 111
- 3
1
vote
1 answer
How to play a audio file picked form a file picker in react native
I have file picker pick audio file from local storage and , result of the file picker is as follows
size: 1057931
name: "AUD-20190314-WA0019.m4a"
type: "audio/mpeg"
uri:…

Jonny
- 823
- 3
- 14
- 25
1
vote
1 answer
react-native-sound in componentDidMount
I want to play music in componentDidMount but my code doesn't works
import React,{Component} from 'react'
import Nav from './Nav'
import Sound from 'react-native-sound'
const play = new Sound('music.mp3')
class App extends Component {
…

Mahmud
- 13
- 6
1
vote
0 answers
React native slider > unable to get the position value by tapping on multiple sliders
I have designed a custom player view by using react-native-slider. There are multiple sliders arranged in this view. I am playing one audio file by following the sliders which are arranged in a FlatList component. All slider having its minimum and…

TechValens
- 437
- 6
- 20
1
vote
1 answer
React-Native Audio Waveform editor
I am planning to build an audio editor app with react-native. The functionalities include having a textbox where user can provide the URL for any audio file. Once the file is loaded on the UI, it will be played with a Waveform UI. User can select…

Divya Kaushik
- 820
- 1
- 8
- 9