Skip to content

Commit

Permalink
docs: update readme to explain issue 578 (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sooryranga committed Mar 3, 2024
1 parent 4f09466 commit 522309e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,18 @@ const uri = await audioRecorderPlayer.startRecord(path);

Also, above example helps you to setup manual path to record audio. Not giving path param will record in `default` path as mentioned above.

To pass in specific URI in IOS, you need to append `file://` to the path. As an example using [RFNS](https://github.com/itinance/react-native-fs).

```javascript
const dirs = RNFetchBlob.fs.dirs;
const path = Platform.select({
ios: `file://${RNFS.DocumentDirectoryPath}/hello.m4a`,
android: `${this.dirs.CacheDir}/hello.mp3`,
});

const uri = await audioRecorderPlayer.startRecord(path);
```
## Try yourself
1. Goto `Example` folder by running `cd Example`.
Expand Down

0 comments on commit 522309e

Please sign in to comment.