简要描述
H5需要调用APP提供的方法完成录音功能。APP在处理完操作后,根据情况调用H5的回调,并且把这里拿到标识回传给H5。详见对接协议中的H5回调事件。
H5实例
// xxx 为app设置对象名称
window.xxx.StopRecord({
success: 'stopRecordSuccess',
fail: 'stopRecordFail'
})
交互协议
提供方/调用方 | 方法名 | 描述 | 参数 |
---|---|---|---|
APP提供H5调用 | stopRecord | H5调用APP提供的方法停止录音 | 参数为一个对象,对象内容是不同状态的回调标识。详见下方 |
StopRecord方法的详细参数
属性名 | 描述 | 参数 | 类型 | 可选值 |
---|---|---|---|---|
success | 调用成功的回调标识 | 参数见下方 | string | stopRecordSuccess |
fail | 调用失败的回调标识 | error对象 | string | stopRecordFail |