Skip to content

结束录音

方法名

stop

用法

用法示例

js
recordModule.stop(res => {
  console.log(res)
})

参数说明

回调

回调示例

json
{
    "data": {
        "path": "/storage/emulated/0/leven_file/20230926140510.mp3",
        "duration": 25124
    },
    "message": "录制结束",
    "code": 0
}

回调说明

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
data.pathString录音文件路径
data.durationString录音时长,单位:毫秒
codeInteger返回类型,0.成功,其他:失败