You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| mode\*| - | ✅ | ✅ | 'live' or 'static' | Type of waveform. It can be either `static` for the resource file or `live` if you want to record audio |
128
-
| ref\*| - | ✅ | ✅ | IWaveformRef | Type of ref provided to waveform component. If waveform mode is `static`, some methods from ref will throw error and same for `live`.<br> Check [IWaveformRef](#iwaveformref-methods) for more details about which methods these refs provides. |
129
-
| path\*| - | ✅ | ❌ | string | Used for `static` type. It is the resource path of an audio source file. |
130
-
| candleSpace | 2 | ✅ | ✅ | number | Space between two candlesticks of waveform |
131
-
| candleWidth | 5 | ✅ | ✅ | number | Width of single candlestick of waveform |
132
-
| candleHeightScale | 3 | ✅ | ✅ | number | Scaling height of candlestick of waveform |
133
-
| containerStyle | - | ✅ | ✅ |`StyleProp<ViewStyle>`| style of the container |
134
-
| waveColor |#545454| ✅ | ✅ | string | color of candlestick of waveform |
135
-
| scrubColor | #7b7b7b | ✅ | ❌ | string | color of candlestick of waveform which has played |
136
-
| onPlayerStateChange | - | ✅ | ❌ | ( playerState : PlayerState ) => void | callback function, which returns player state whenever player state changes. |
137
-
| onPanStateChange | - | ✅ | ❌ | ( panMoving : boolean ) => void | callback function which returns boolean indicating whether audio seeking is active or not. |
138
-
| onRecorderStateChange | - | ❌ | ✅ | ( recorderState : RecorderState ) => void | callback function which returns the recorder state whenever the recorder state changes. Check RecorderState for more details |
139
-
| onCurrentProgressChange | - | ✅ | ❌ | ( currentProgress : number, songDuration: number ) => void | callback function, which returns current progress of audio and total song duration. |
140
-
| onChangeWaveformLoadState | - | ✅ | ❌ | ( state : boolean ) => void | callback function which returns the loading state of waveform candlestick. |
141
-
| onError | - | ✅ | ❌ | ( error : Error ) => void | callback function which returns the error for static audio waveform |
| mode\*| - | ✅ | ✅ | 'live' or 'static' | Type of waveform. It can be either `static` for the resource file or `live` if you want to record audio |
133
+
| ref\*| - | ✅ | ✅ | IWaveformRef | Type of ref provided to waveform component. If waveform mode is `static`, some methods from ref will throw error and same for `live`.<br> Check [IWaveformRef](#iwaveformref-methods) for more details about which methods these refs provides. |
134
+
| path\*| - | ✅ | ❌ | string | Used for `static` type. It is the resource path of an audio source file. |
135
+
| candleSpace | 2 | ✅ | ✅ | number | Space between two candlesticks of waveform |
136
+
| candleWidth | 5 | ✅ | ✅ | number | Width of single candlestick of waveform |
137
+
| candleHeightScale | 3 | ✅ | ✅ | number | Scaling height of candlestick of waveform |
138
+
| maxCandlesToRender | 300 | ❌ | ✅ | number | Number of candlestick in waveform |
139
+
| containerStyle | - | ✅ | ✅ |`StyleProp<ViewStyle>`| style of the container |
140
+
| waveColor |#545454| ✅ | ✅ | string | color of candlestick of waveform |
141
+
| scrubColor | #7b7b7b | ✅ | ❌ | string | color of candlestick of waveform which has played |
142
+
| onPlayerStateChange | - | ✅ | ❌ | ( playerState : PlayerState ) => void | callback function, which returns player state whenever player state changes. |
143
+
| onPanStateChange | - | ✅ | ❌ | ( panMoving : boolean ) => void | callback function which returns boolean indicating whether audio seeking is active or not. |
144
+
| onRecorderStateChange | - | ❌ | ✅ | ( recorderState : RecorderState ) => void | callback function which returns the recorder state whenever the recorder state changes. Check RecorderState for more details |
145
+
| onCurrentProgressChange | - | ✅ | ❌ | ( currentProgress : number, songDuration: number ) => void | callback function, which returns current progress of audio and total song duration. |
146
+
| onChangeWaveformLoadState | - | ✅ | ❌ | ( state : boolean ) => void | callback function which returns the loading state of waveform candlestick. |
147
+
| onError | - | ✅ | ❌ | ( error : Error ) => void | callback function which returns the error for static audio waveform |
142
148
143
149
##### Know more about [ViewStyle](https://reactnative.dev/docs/view-style-props), [PlayerState](#playerstate), and [RecorderState](#recorderstate)
144
150
@@ -255,14 +261,14 @@ Check out the following example:
255
261
let hasPermission =awaitcheckHasAudioRecorderPermission();
// The maximum number of candles set in the waveform. Once this limit is reached, the oldest candle will be removed as a new one is added to the waveform.
0 commit comments