-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't play from locally downloaded file #10
Comments
Hi, sorry about the late reply, did you manage to solve this problem? I can take a look into it if needed. |
how to play downloaded sound files. am looking for a solution for the same problem. |
Well it seems you're a bit confused with the directories :)
Actually I could make it run from documents, but you will have to edit the Xcode project of this module:
Now just call (from the React project): Cheers! |
This should be resolved by #37, thanks to @assertchris. |
Hi,
I have a file downloaded this mp3: https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3 using
react-native-fs
intoMAIN_BUNDLE
on an IOS emulator. I can verify the file is there and I can play it with any audio player on my Mac/Library/Developer/CoreSimulator/Devices/594B5EDF-5E73-4040-9236-2DA23A1BAC86/data/Containers/Data/Application/A60A1E1B-EBD9-4A59-9B90-4A3148D68D7D/Documents/mpthreetest.mp3
Yet, I get this error when I run:
Looking at
RNSoundPlayer.m
I can see that the default location ismainBundle
. I tried with many files mp4, ogg but the same is happening.When I play the URL directly with
it plays without a problem, but I need to download files first before playing it to make sure the file is available offline.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: