Skip to content
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

Support for loading sounds from arbitrary directories on Android #24

Merged
merged 2 commits into from
Apr 6, 2016

Conversation

jeduan
Copy link
Contributor

@jeduan jeduan commented Mar 28, 2016

Hi! This PR adds support for loading files on Android from arbitrary directories. This fixes #8 and fixes #5.

I tested loading a file from RNFS.DocumentsDirectory which worked perfectly.

Thanks!

@jeduan jeduan changed the title Support for loading sounds from arbitrary places on Android Support for loading sounds from arbitrary directories on Android Mar 28, 2016
@jeduan
Copy link
Contributor Author

jeduan commented Mar 28, 2016

Oops just noticed #15

@danvass
Copy link

danvass commented Apr 1, 2016

@zmxv Could this be merged?

@jeduan
Copy link
Contributor Author

jeduan commented Apr 4, 2016

@dvassilev in the meantime, you can use my fork by setting on your package.json the dependency like so:
"react-native-sound": "jeduan/react-native-sound#42bb7dd4da8"

Hopefully this or the other PR will be merged soon!

@@ -86,7 +86,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
}
```

Save your sound clip files under the directory `android/app/src/main/res/raw`.
Save your sound clip files under the directory `android/app/src/main/res/raw` or any of the directories under Sound.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Save your sound clip files under the default directory android/app/src/main/res/raw, or any other directory in which case you need to pass the full path into the Sound constructor.

@jeduan
Copy link
Contributor Author

jeduan commented Apr 6, 2016

@zmxv Thanks for the feedback! Just made the changes you suggested

@zmxv zmxv merged commit a696e83 into zmxv:master Apr 6, 2016
@zmxv
Copy link
Owner

zmxv commented Apr 6, 2016

Merged into master. Thank you for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

how to play mp3 file downloaded using react-native-fs Play sound from URL
3 participants