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

add custom path for ios #168

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Conversation

RZulfikri
Copy link
Contributor

update:
add custom path for ios in startPlayer method. Currently, startPlayer only accepts file name with the default parent directory (Cache Directory). So I add the condition to check if path contains file:// then use path, else append default parent directory into path file.

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!!

@hyochan hyochan merged commit dde0f72 into hyochan:master Feb 11, 2020
@escobar5
Copy link
Contributor

@RZulfikri @hyochan This is a great fix, that was what I was trying to do but I don't have any knowledge of Objective C.
There's one thing, that fix needs to be applied also in the startRecorder method, in line 129

escobar5 added a commit to escobar5/react-native-audio-recorder-player that referenced this pull request Mar 31, 2020
PR hyochan#168 fixed the possibility to add a custom path on iOS, but only for startPlayer, the same code is in startRecorder, so I replicated the change in that method also.
hyochan pushed a commit that referenced this pull request Apr 18, 2020
PR #168 fixed the possibility to add a custom path on iOS, but only for startPlayer, the same code is in startRecorder, so I replicated the change in that method also.
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.

3 participants