Skip to content

Commit

Permalink
docs: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jun 11, 2024
1 parent 95882c4 commit 7bdf8fc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cSpell.words": [
"audiorecorderplayer",
"buildscript",
"classpath",
"jcenter",
"mansya",
"mmss",
"mmssss",
"RFNS",
"RNFS",
"xcodeproj"
]
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This is a react-native link module for audio recorder and player. This is not a
4. `subscriptionDuration` offset not defaults to `0.5` which is `500ms`.
- Resolve [#273](https://github.com/hyochan/react-native-audio-recorder-player/issues/273)

- There has been vast improvements in [#114](https://github.com/dooboolab/react-native-audio-recorder-player/pull/114) which is released in `2.3.0`. We now support all `RN` versions without any version differenciating. See below installation guide for your understanding.
- There has been vast improvements in [#114](https://github.com/dooboolab/react-native-audio-recorder-player/pull/114) which is released in `2.3.0`. We now support all `RN` versions without any version differentiating. See below installation guide for your understanding.

## Migration Guide

Expand Down Expand Up @@ -157,7 +157,7 @@ if (Platform.OS === 'android') {
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
]);
console.log('write external stroage', grants);
console.log('write external storage', grants);
if (
grants['android.permission.WRITE_EXTERNAL_STORAGE'] ===
Expand Down Expand Up @@ -212,7 +212,7 @@ All methods are implemented with promises.
| mmss | `number` seconds | `string` | Convert seconds to `minute:second` string |
| setSubscriptionDuration | | `void` | Set default callback time when starting recorder or player. Default to `0.5` which is `500ms` |
| addRecordBackListener | `Function` callBack | `void` | Get callback from native module. Will receive `currentPosition`, `currentMetering` (if configured in startRecorder) |
| removeRecordBackListener | `Function` callBack | `void` | Removes recordback listener |
| removeRecordBackListener | `Function` callBack | `void` | Removes recordBack listener |
| addPlayBackListener | `Function` callBack | `void` | Get callback from native module. Will receive `duration`, `currentPosition` |
| removePlayBackListener | `Function` callBack | `void` | Removes playback listener |
| startRecorder | `<string>` uri? `<boolean>` meteringEnabled? | `Promise<void>` | Start recording. Not passing uri will save audio in default location. |
Expand All @@ -222,7 +222,7 @@ All methods are implemented with promises.
| startPlayer | `string` uri? `Record<string, string>` httpHeaders? | `Promise<string>` | Start playing. Not passing the param will play audio in default location. |
| stopPlayer | | `Promise<string>` | Stop playing. |
| pausePlayer | | `Promise<string>` | Pause playing. |
| seekToPlayer | `number` miliseconds | `Promise<string>` | Seek audio. |
| seekToPlayer | `number` milliseconds | `Promise<string>` | Seek audio. |
| setVolume | `double` value | `Promise<string>` | Set volume of audio player (default 1.0, range: 0.0 ~ 1.0). |

## Able to customize recorded audio quality (from `2.3.0`)
Expand Down

0 comments on commit 7bdf8fc

Please sign in to comment.