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.

Unable to play downloaded mp3 on iOS

See original GitHub issue

First off - thanks for the module!

I’m using react-native-fetch-blob to download MP3 from a URL into the app and then play it using react-native-sound.

However, react-native-sound does not want to play the file when I provide the full system path to the download. It plays only files that are manually added through Xcode.

Is this a limitation of the module? Any ideas on how to overcome this?

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
benviumcommented, Mar 6, 2017

Can you try putting the .play() command inside the constructor callback (i.e. the error => {}) part. If the audio isn’t loaded the .play() command is ignored.

1reaction
benviumcommented, Mar 6, 2017

@Pedneri1. Great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloaded MP3 file not playing in music - Apple Community
Downloaded MP3 file not playing in music · Drag it into iTunes (or Music) · Drag it into a specific playlist (i.e., the...
Read more >
How do I play regular mp3 files on my iPhone? - Quora
To play MP3 music, simply open the Apple Music app which has the music icon on it (it's a white icon). To load...
Read more >
How to play MP3 files on an iPhone - TP Transcription
Download the VLC Player from the app store. · Save your MP3 files on a device. · Open the VLC Player. · Copy...
Read more >
iTunes Won't Play MP3 Files? Convert MP3 to iTunes to Solve ...
1. iTunes version is out of date. Update iTunes to the latest version to play the MP3 file. 2. The MP3 file is...
Read more >
Song cannot be played on this iPhone - Apple Stack Exchange
iTunes might be refusing to sync the tracks because they use an encoding format that it knows isn't supported on iOS devices.
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