getMonitorDevices 接口

获取监听设备列表。

请求方式

POST/GET http://ip/V1.0/volume/getMonitorDevices

请求数据

返回数据

{ "monitorAudioDeivceList": [ { "audioSourceId": 0, "cardNo": 0, "devNo": 0, "deviceType": 0, "direction": 0, "id": 0, "isMic": true, "sourceType": 0 }, { "audioSourceId": 2, "cardName": "USB Capture HDMI+", "cardNo": 3, "devNo": 0, "deviceType": 1, "direction": 0, "id": 2, "isMic": true, "name": "HDMI [USB Capture HDMI+]", "sourceType": 0 }, { "audioSourceId": 2, "cardName": "C204221201227", "cardNo": 4, "devNo": 0, "deviceType": 1, "direction": 0, "id": 2, "isMic": true, "name": "C204221201227 [C204221201227] #0", "sourceType": 0 } ], "message": "SUCCESS", "status": 0 }

1. 返回状态
"status": 0
属性 说明
status 返回状态。0:数据获取成功
message 返回状态描述
monitorAudioDeivceList 监听设备列表
2.监听设备列表 monitorAudioDeivceList [{...}]
    "monitorAudioDeivceList": [
        {
            "audioSourceId": 0,
            "cardNo": 0,
            "devNo": 0,
            "deviceType": 0,
            "direction": 0,
            "id": 0
        },
        {
            "audioSourceId": 1,
            "cardNo": 0,
            "devNo": 0,
            "deviceType": 0,
            "direction": 0,
            "id": 1
        }
    ]
属性 说明
audioSourceId 音频资源ID
deviceType 设备类型, 0:内置音频设备 1:外接音频设备
id 设备ID
devNo 设备序号
cardNo 声卡序号

HTTP Status Code

与“”相关结果约

    找不到与“”相关的结果