getCurrentExternalInputsStatus (v1.1)

Estimated reading time: 2 minutes

这个API提供关于设备所有外部输入源的当前状态的信息。

语法

http://<Base URL>/avContent

认证级别

需求

参数个数' 元素
无必要。
JSON Example
{
    "method": "getCurrentExternalInputsStatus",
    "id": 105,
    "params": [],
    "version": "1.1"
}

响应

结果的元素
由以下对组成的对象数组。
名称 类型 多重性 默认的 描述
uri 字符串 1 URI来标识内容。请参阅 这里 详细了解URI结构。
  • (ex) "extInput:hdmi?port=2"
名称 字符串 1 输入的名称。
  • (ex) "HDMI 2"
  • (ex) "组件 1"
连接 布尔运算 1 输入连接状态。
  • 真—连接
  • 假 - 不连接
标签 字符串 1 用户设置的输入的标签名称。
  • (ex) "游戏"
图标 字符串 1 图标类型向应用程序提示要为用户显示哪个图标。 类型由“元”URI格式指示,并表示客户端应该准备一些与元数据相关的实际图像URI。定义了以下元URI。
  • "meta:composite" - Composite input
  • "meta:svideo" - S-Video input
  • "meta:composite_componentd" - Composite and D-Component combined input
  • "meta:component" - Component input (Y and Pb/Cb and Pr/Cr connectors)
  • "meta:componentd" - D-Component input
  • "meta:scart" - SCART input
  • "meta:hdmi" - HDMI input
  • "meta:dsub15" - D-subminiature 15pin input
  • "meta:tuner" - Tuner device is connected.
  • "meta:tape" - Tape player device is connected.
  • "meta:disc" - Disk player device is connected.
  • "meta:complex" - Complex device is connected.
  • "meta:avamp" - AV amp device is connected.
  • "meta:hometheater" - Home theater device is connected.
  • "meta:game" - Game player is connected.
  • "meta:camcoder" - Video camera is connected.
  • "meta:digitalcamera" - Still camera is connected.
  • "meta:pc" - Personal computer is connected.
  • "meta:tv" - TV-type CEC device is connected.
  • "meta:audiosystem" - Audio system-type CEC device is connected.
  • "meta:recordingdevice" - Recording-type CEC device is connected.
  • "meta:playbackdevice" - Playback-type CEC device is connected.
  • "meta:tunerdevice" - Tuner-type CEC device is connected.
  • "meta:wifidisplay" - WiFi Display input
状态 字符串 ? 输入信号状态。
  • “真”-检测到信号。
  • “错误”-没有检测到信号。
  • 零-未知
JSON Example
{
    "result": [[
        {
            "icon": "meta:game",
            "connection": false,
            "label": "GAME",
            "title": "Component1",
            "uri": "extInput:component?port=1",
            "status": "false"
        },
        {
            "icon": "meta:component",
            "connection": true,
            "label": "",
            "title": "Component2",
            "uri": "extInput:component?port=2",
            "status": "false"
        },
        {
            "icon": "meta:hdmi",
            "connection": true,
            "label": "",
            "title": "HDMI1",
            "uri": "extInput:hdmi?port=1",
            "status": "true"
        },
        {
            "icon": "meta:recordingdevice",
            "connection": true,
            "label": "BDPlayer",
            "title": "Player1",
            "uri": "extInputs:cec?type=player&port=1",
            "status": "false"
        }
    ]],
    "id": 105
}
错误代码
没有定义额外的错误代码。请参阅 错误代码 常见的错误。
Last modified: 10 Apr 2019