K8凯发(中国)

    分层读取组织列表协议
    请求地址:

    http://ip:port/QueryOrgTreeByNode?type={&type}&id={$id}&hls={$hls}&rtsp={$rtsp}&httpflv={$httpflv}&w s={$ws}


    请求方式: GET


    请求参数:
    参数名 类型 描述 是否必选
    type int 节点类型: 1-区域节点, 2-设备节点, 3-通道节点。 缺省为 1 Y
    ID int 节点 ID, 数据库产生(读取顶层区域节点时, 可以为-1) Y
    HLS int 是否读取 hls 的 url, 缺省为 0 N
    RTSP int 是否读取 rtsp 的 url, 缺省为 0 N
    HttpFlv int 是否读取 HttpFlv 的 url, 缺省为 0 N
    Ws int 是否读取 ws 的 url, 缺省为 0 N

    返回参数:

    {

    "result" :{$result},

    "type":{$type},

    "id":{$id},

    "name":{$name},

    "items": [{

    "valid" :{$valid},

    "id" :{$id},

    "name" :{$name},

    "type" :{$type},

    "gbid" :{$gbid},

    "longitude": {$longitude},

    "latitude": {$latitude},

    "cameratype": {$cameratype},

    "url": {$url},

    "rtspurl": {$rtspurl},

    "httpflv": {$httpflv},

    "ws": {$ws},

    "channel":{$channel}

    }]

    }


    返回字段:
    字段名 类型 描述
    type int 节点类型: 1-区域节点, 2-设备节点, 3-通道节点
    ID int 节点 ID, 数据库产生。 type + id, 组成唯一值。 在同一 type 内, id 是唯一的。
    valid int 是否在线的标志, valid=1, 在线; valid=0, 不在线
    name string 节点名称。 根据 type 的不同, 有可能是区域名称, 有可能是设备名称, 也可能是 通道名称
    gbid string 下级平台推送过来时的国标 ID
    longitude string 经度
    latitude string 纬度
    cameratype int 摄像机类型: 1-球机;2-半球;3-固定枪机;4-遥控枪机。 仅当节点通道时有效
    url string HLS 的 URL(只在 hls 不等于 0 时才有)。 仅当节点通道时有效
    rtspurl string RTSP 的 URL(只在 rtsp 不等于 0 时才有) 。 仅当节点通道时有效
    httpflv string HTTP-FLV 的 URL(只在 httpflv 不等于 0 时才有) 。 仅当节点通道时有效
    ws string WebSocket 的 URL(只在 ws 不等于 0 时才有) 。 仅当节点通道时有效
    channel int 通道号。 仅当节点通道时有效