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 要为目标名称设置的值。
  • If "target" is "outputTerminal"
    • “扬声器”-音频是从扬声器输出。
    • "扬声器_hdmi" - 音频是由扬声器和HDMI输出的。
    • "hdmi" - 音频是从HDMI输出的.
    • "audioSystem" - 音频是从HDMI或数字音频输出。
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