帮助列表
帮助列表
查询指定流播放信息

1.接口地址:

https://openapi.aodianyun.com/v4/service


2.HTTP请求方式:

POST


3-1.公共参数和签名方式:

具体参数、签名机制、请求方法请参考 openapi v4调用规则


公共请求头中的X-Service、X-Api,lps服务取以下固定值

X-Service: lps_api

X-Api: /


3-2.本接口参数说明(JSON格式):

cmd:get_play_info必选  

app:appname,值为字符串。必选

stream:streamname,值为字符串。必选  


3-3.请求示例:

curl -X POST -i https://openapi.aodianyun.com/v4/service -d '{"cmd":"get_play_info","app":"test","stream":"testtoken1"}' -H "X-AccessId:481280170004" -H "X-Signature:a5bbe87b6bc61374cc37c50c0e7e3643" -H "X-TimeStamp: 1736411790" -H "X-SignatureNonce: n1736411790" -H "Content-Type: application/json" -H "X-Api: /" -H "X-Service: lps_api"


4-1.返回结果(JSON格式):

Flag:操作处理结果状态码

示例:“Flag”:100提示:Flag=100为成功,失败为非100,失败原因在FlagString中体现。


FlagString:操作处理结果状态说明

示例:“FlagString”:“操作成功”


data:查询结果

示例:{

"tokena_5e092ce86842176b1fee087af44a151b_1736412024265": { //token,每个播放端的唯一标识,可用于管理每个播放端

"info": null,

"running": {

"192.168.2.238:27787": { //每个播放端的播放地址

"ip": "192.168.2.238",

"port": 27787,

"start_time": 1736412041684,

"fluency": 99.9983,

"bsrc": false,

"bdelay": true,

"token": "tokena_5e092ce86842176b1fee087af44a151b_1736412024265",

"type": 1,

"request_info": {

"host": "1011.lps.jstest.aodianyun.cn",

"protocol": "rtmp",

"query": {

"k": "5e092ce86842176b1fee087af44a151b",

"t": "1736412024265"

},

"url": "/apaas1011/testtoken1?k=5e092ce86842176b1fee087af44a151b&t=1736412024265"

}

}

},

"count": 1

}

}


4-2.返回参考:

{

"data": {

"tokena_5e092ce86842176b1fee087af44a151b_1736412024265": {

"info": null,

"running": {

"192.168.2.238:27787": {

"ip": "192.168.2.238",

"port": 27787,

"start_time": 1736412041684,

"fluency": 99.9983,

"bsrc": false,

"bdelay": true,

"token": "tokena_5e092ce86842176b1fee087af44a151b_1736412024265",

"type": 1,

"request_info": {

"host": "1011.lps.jstest.aodianyun.cn",

"protocol": "rtmp",

"query": {

"k": "5e092ce86842176b1fee087af44a151b",

"t": "1736412024265"

},

"url": "/apaas1011/testtoken1?k=5e092ce86842176b1fee087af44a151b&t=1736412024265"

}

}

},

"count": 1

}

},

"Flag": 100,

"FlagString": "success"

}


2006 - 2023 aodianyun.com, All Rights Reserved. 奥点科技 版权所有 增值电信业务经营许可证:浙B2-20110306 浙ICP备07500424号 |

  • 电话

    X

    售前咨询:

    400-663-6063

    售后服务:

    400-663-6063

  • 客服

  • 建议

    咨询留言 X
    提  交

在线QQ

售前咨询400-663-6063

售后服务400-663-6063