/api/channel/query

获取通道详细信息。

需要通道查看权限

接口原型

协议 HTTP/HTTPS GET
URL ip[:port]/api/channel/query
数据格式 响应消息:Content-Type: application/json

请求URL参数

参数 描述
id 通道的id
output-start 可选参数,用于设置channel中的output的开始索引,如不配置默认为0
output-count 可选参数,用于设置channel中的output返回数量,如不配置默认为10个
client-start 可选参数,用于设置channel中的client的开始索引,如不配置默认为0
client-count 可选参数,用于设置channel中的client返回数量,如不配置默认为10个

请求示例

GET /api/channel/query?id=xxx&output-count=5&client-count=10 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

响应参数

Response Header
参数 描述
Content-Type 取值为:'application/json; charset=UTF-8'
Response Body
参数 描述
result 返回码
其余字段 其余字段参考通道统计信息

响应示例

{
    "config": {
        "enable": false,
        "play-key": "PULL-B6C5FBB1-7476-48A4-B591-5B69E3FD0849",
        "protocol": {
            "ndihx": true,
            "prefer": 1,
            "rtmp": true,
            "srt": true
        },
        "push-key": "PUSH-19D9753A-1D68-49E0-94BF-1965276A71C2"
    },
    "id": 100033,
    "input": {
        "addr": "",
        "conn-state": 0,
        "id": 1038,
        "kbps": 0,
        "name": "test1",
        "protocol": 1,
        "state": 1,
        "type": 258
    },
    "name": "222",
    "outputs": {
        "list": [
            {
                "conn-state": 0,
                "id": 11077,
                "kbps": 0,
                "living-time-s": 0,
                "mode": "caller",
                "name": "srt-233-mediahub-42",
                "protocol": 2,
                "report": {
                    "pkt-drop": 0,
                    "pkt-drop-total": 0,
                    "pkt-loss": 0.0
                },
                "state": 0,
                "type": 514
            },
            {
                "conn-state": 0,
                "id": 11076,
                "kbps": 0,
                "living-time-s": 0,
                "mode": "caller",
                "name": "srt-233-mediahub-41",
                "protocol": 2,
                "report": {
                    "pkt-drop": 0,
                    "pkt-drop-total": 0,
                    "pkt-loss": 0.0
                },
                "state": 0,
                "type": 514
            }
        ],
        "start": 0,
        "total": 2
    },
    "result": 0,
    "state": 1,
    "url": {
        "rtmp": {
            "app": "live",
            "play": "PULL-B6C5FBB1-7476-48A4-B591-5B69E3FD0849",
            "port": 1935,
            "push": "PUSH-19D9753A-1D68-49E0-94BF-1965276A71C2"
        },
        "srt": {
            "passphrase": "1234567890",
            "play": "PULL-B6C5FBB1-7476-48A4-B591-5B69E3FD0849",
            "port": 80,
            "push": "PUSH-19D9753A-1D68-49E0-94BF-1965276A71C2"
        }
    }
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果