# getDuration ^7.8
获取视频时长
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
params | String | N/A | url音频路径 如:/test_jack_record.wav |
# 接口调用示例
const params = '/test_jack_record.wav', //url音频路径
this.$bridge
.getDuration(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 接口返回示例
N/A
1
# FAQ
tip
回调需要先注册setCallback
函数,然后通过setCallback
返回