-
Notifications
You must be signed in to change notification settings - Fork 749
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
Unable to load mp3 on iOS #12
Comments
It doesn't matter where you store the file as long as it's bundled with the app. Can you select the mp3 in XCode's project navigator and verify that the Target Membership list includes the main build target? |
Managed to get this working once I added the file manually to the Xcode project. Unless this should have been done automatically, it might be a good idea to update the readme with specific info for iOS (you mention where audio files for Android should go). Thanks for your help! |
Thanks for the suggestion. I've updated README.md with more detailed instructions. |
…adset Implement isHeadsetPluggedIn
Currently trying to load an mp3 from the root directory in my project but am being thrown this error in the react native debugger:
How I'm currently attempting to use react-native-sound:
My guess is that this has something to do with the react native/ios file system. I've tried multiple mp3s so I'm relatively sure it's not to do with the file itself, but perhaps where I'm storing it. Right now it is in the root directory of my react native project (same as
index.ios.js
).I'm running:
Any ideas?
The text was updated successfully, but these errors were encountered: