• K8凯发(中国)

    读取逻辑分组协议V2:
    请求

    http://ip:port/QueryGroupTree?username={$username}&password={$password}&hls=

    {$hls}&rtsp={$rts p}&httpflv={$httpflv}&ws={$ws}

    回复

    {

    "result" :{$result},

    "hostip": {$hostip},

    "hostport": {$hostport},

    "serviceip": {$serviceip},

    "serviceport": {$serviceport},

    "user": {$user},

    "items": [{

    "pid" :{$pid},

    "index" :{$index}

    "id" :{$id},

    "name" :{$name},

    "channels" :[{

    "deviceid": {$deviceid},

    "channel":{$channel}

    "name":{$name}

    "url": {$url},

    "rtspurl": {$rtspurl},

    "httpflv": {$httpflv},

    "ws": {$ws},

    "valid":{$valid}

    }],

    "items": [{...}]

    }]

    }

    username 用户名

    password 密码

    hls 是否读取 hls 的 url, 缺省为 0

    rtsp 是否读取 rtsp 的 url, 缺省为 0

    httpflv 是否读取 http-flv 的 url, 缺省为 0

    ws 是否读取 websocket 的 url, 缺省为 0

    hostip 主机端的 IP

    hostport 主机端的端口

    serviceip 流媒体的 IP

    serviceport 流媒体的端口

    user 登录的用户名

    pid 分组的父 ID, 当为顶层分组时为-1

    index 在列表中的排序顺序, 0 表示没有进行

    逻辑排序

    id 分组的 ID, 数据库产生, 唯一值

    name 分组的名称

    deviceid 设备 ID

    channel 通道号

    name 摄像机名称

    url HLS 的 URL(只在 hls 不等于 0 时才 有)

    rtspurl RTSP 的 URL(只在 rtsp 不等于 0 时 才有)

    httpflv HTTP-FLV 的 URL( 只在 httpflv 不 等于 0 时才有)

    ws WebSocket 的 URL(只在 ws 不等于 0 时才有)

    valid 是否在线的标志, valid=1, 在线; valid=0, 不在线