# startRecord ^6.8
录音开始
# 请求参数
Prop | Type | Required | Default | Comment |
---|---|---|---|---|
path | String | Y | N/A | 本地录音文件相对路径 |
maxTime | Number | N | N/A | 录音最长时间,单位是否为妙 |
# 接口调用示例
const params = { path: '/test_jack_record.wav', maxTime: 600 }
this.$bridge
.startRecord(params)
.then((res) => {
this.$alert(res)
})
.catch((err) => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
- 成功时返回
Prop | Type | Required | Default | Comment |
---|---|---|---|---|
code | Number | Y | N/A | 返回码 |
msg | String | Y | N/A | 返回信息 |
# 返回示例
{
code: 0,
msg: "success"
}
1
2
3
4
2
3
4