RecorderManager.onStop
JS
RecorderManager.onStop(function callback)Listens for the recording stop event
Triggered after recording is stopped manually or stops automatically when duration is reached.
Parameters
- function callback: the callback function for the recording stop event
callback Parameters
- Object res: recording result information
res Properties:
| Property | Type | Description |
|---|---|---|
| tempFilePath | string | Temporary path of the recording file, can be used with InnerAudioContext for playback |
| duration | number | Total recording duration, in ms. Excludes pause time |
| fileSize | number | Recording file size, in bytes |
