Skip to content

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:

PropertyTypeDescription
tempFilePathstringTemporary path of the recording file, can be used with InnerAudioContext for playback
durationnumberTotal recording duration, in ms. Excludes pause time
fileSizenumberRecording file size, in bytes