请扫码查看示例
# changeVolume ^7.8
调节音量
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
value | String | N/A | 音量大小(0-1) |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
value: '0.5',
}
bridge
.changeVolume(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 接口返回示例
N/A