setSoundSettings (v1.1)
Estimated reading time: 1 minute
- 此API提供了更改与声音设置相关的设置的应用。
语法
- http://<Base URL>/audio
认证级别
- generic
需求
- params' Elements
- An object composed of the following pair(s).
name | type | multiplicity | default | description | |
---|---|---|---|---|---|
settings | (object-array) | 1 | Object to accommodate one or more target/value pair(s). | ||
target | string | 1 | 目标名称(UI设置目标)
|
||
value | string | 1 | 要为目标名称设置的值。
|
- JSON Example
-
{ "method": "setSoundSettings", "id": 5, "params": [{"settings": [{ "value": "speaker", "target": "outputTerminal" }]}], "version": "1.1" }
反馈
- result's Elements
- Not necessary.
- JSON Example
-
{ "result": [], "id": 5 }
- Error Code
- The following error codes are important for this API. Refer to error code for other errors.
code | Explanation |
---|---|
40004 | 当设置多个设置时,一个或多个设置不会被错误设置。客户端需要调用成对的api (getXXXSettings)来确定哪些参数没有更新。 |
Last modified: 13 Feb 2019