应用分享

获取应用共享信息

请求地址: /api/3dcat/application/share/info/{id}

说明:请使用 应用id替换{id}

请求方法: Get

请求参数:

返回结果:

字段名类型说明
idLong应用共享id
appDbIdLong应用id
appKeyStringappKey
appSecretString私密分享访问密钥
shareLinkString访问链接
startTimeDate链接生效时间
endTimeDate链接结束时间
userIdLong用户id

返回内容示例:

{
    "version":"1.0.0",
    "result":true,
    "message":"success",
    "code":200,
    "data":{
        "id":345,
        "appDbId":443,
        "appKey":"454vgfbvner",
        "appSecret":"906d",
        "shareLink":null,
        "isDelete":0,
        "startTime":null,
        "endTime":null,
        "userId":3625
    },
    "serverTime":1626143380582,
    "requestId":"9ad3b2a7f6f11e53"
}

更新共享信息

请求地址:/api/3dcat/application/share/update

请求方法: put

请求参数:

字段名类型是否必填说明
idLong应用分享id
startTimeString链接生效时间(格式为 2020-08-10 12:00:00)
endTimeString链接结束时间(格式为 2020-08-10 12:00:00)
appSecretString私密分享访问密钥

返回结果:

返回内容示例:

{
    "version": "1.0.0", 
    "result": true, 
    "message": "success", 
    "code": 200,  
    "serverTime": 1625826814401, 
    "requestId": "71339b2af9ff2325"
}

生成共享私钥

请求地址:/api/3dcat/application/share/appSecret/{id}

说明: 使用 应用共享id 替换{id}

请求方法: get

请求参数:

返回内容示例:

{
    "version":"1.0.0",
    "result":true,
    "message":"success",
    "code":200,
    "data":"cd2a",
    "serverTime":1626146391608,
    "requestId":"86763aeecb536a85"
}

检测是否为私密(不需要权限)

请求地址:/api/3dcat/application/share/check

请求方法: get

请求参数:

字段名类型是否必填说明
appKeystringappKey

返回结果:

字段名类型说明
isAuthorityboolean是否需要密码 true是 false 否

返回内容示例:

{
    "version":"1.0.0",
    "result":true,
    "message":"success",
    "code":200,
    "data":{
        "isAuthority":true
    },
    "serverTime":1626147836900,
    "requestId":"0bf42a6d1eb31bef"
}

生成播放链接(不需要权限)

请求地址:/api/3dcat/application/share/startApplicationUrl

请求方法: get

请求参数:

字段名类型是否必填说明
appKeystringappKey
appSecretstring共享密钥
codeRatestring可选码率 填 '5000'
minBitrateInteger最小帧率
startBitrateInteger初始码率
networkstring根据网络状况自动调整码率的开关,1/选中,0/未选中 填1
frameRatestring帧率 30,60 填30
platformstring不填

返回结果:

返回内容示例:

{
    "version":"1.0.0",
    "result":true,
    "message":"success",
    "code":200,
    "data":"http://192.168.0.1:8089/rayvision/player.html?config=eyJ2aXJ0dWFsQ29tcG9uZW50IjoxLCJzaWduYWxpbmciOiJ3czovLzYxLjE3NC4yNTIuNzM6MTg4OCIsImZyYW1lcmF0ZSI6MzAsImJpdHJhdGUiOjUwMDAsImxvYWRpbmdQY0ltYWdlIjoiaHR0cDovLzEyMS4yMDEuMTIxLjE0Nzo0NDMxL2ltYWdlcy8zNTAwLzM2MjUvMjAyMS8wNy8xNDEzNDQ2MTc2NzUzMTkyOTYwLnBuZyIsInRva2VuIjoiMjRlZmI1MmMtZWNiOC00ZDU4LTkxODctZDE3ODk5ZmJmZWJlIiwibG9hZGluZ01vYmlsZUltYWdlIjoiaHR0cDovLzEyMS4yMDEuMTIxLjE0Nzo0NDMxL2ltYWdlcy8zNTAwLzM2MjUvMjAyMS8wNy8xNDEzNDQ2MTUzNTU0NDk3NTM2LnBuZyIsImFwcElkIjoiMTQwOTgwOTIzNDUxMzczNTY4MiIsImNsaWVudElwIjoiMTcyLjE2LjQuOTgifQ%3D%3D&official=undefined",
    "serverTime":1626147836900,
    "requestId":"0bf42a6d1eb31bef"
}
QQ: 912428984
+86 18588403835