Open DevJett opened 4 years ago
Hi,
I've the same problem. Do you have news?
Thanks.
@lucaisoardi I can't find a solution yet. Please if you find a solution for that post it here
I think this problem related to rn-fetch-blob
@lucaisoardi I can't find a solution yet. Please if you find a solution for that post it here
Hi,
The only way that i find is to generate the mp3 server side and then play it on the app.
const sound = new Sound(resp.audio, null, (error) => { if (error) { console.log('failed to load the sound', error); return; } sound.play(() => { this.props.toggleSpeaking(false); fs.unlink(resp.audio); this.setState({ isPlaying: false, }); }); });
"react-native-sound": "^0.10.12",
I have run into some trouble using
writeFile
method withbase64
generated from javascript blob voice recorder jsfiddle linkI'm using
react-native-sound
to play the file and when I'm trying to run the file I got error saysThis error occurs when you are trying to access a file that is not present in the specified folder or can not be downloaded from a network.
I've tried on android it works perfectly but on IOS I got that error I don't know where to post this problem actually
Note: I successfully got the file URL with a length without any errors but the package
react-native-sound
says there's an error with a file, I've tried a base64 recorded from**'react-native-audio'**
it works perfectly on both IOS & Android usingwriteFile
method but the generated base64 from the fiddle link it doesn't work