/api/ices/receiver-info 接口
icecast RX端信息
请求方式
POST /api/ices/receiver-info
返回数据
{
"status": 0,
"ices": [
{
"uid": 1,
"enable": true,
"name": "icecast_01",
"service-url": "http://ec5.yesstreaming.net:1930",
"room": "stream",
"buffer-duration": 500,
"headroom-db": 0,
"state": "fail",
"format": {
"sample-rate": 0,
"channel-num": 0,
"bit-depth": 0,
"coding-format": "NONE"
}
}
]
}
属性 | 说明 |
---|---|
status | 0:执行成功。返回其它值请参考 API 状态码。 |
ices[i].uid | 唯一ID, 非0 |
ices[i].enable | 使能icecast, 有效值true/false |
ices[i].name | 名称 |
ices[i].service-url | icecast 服务器URL |
ices[i].room | icecast流名称 |
ices[i].buffer-duration | 缓存设置,单位ms, 范围[1,1000] |
ices[i].headroom | headroom, 单位dB |
ices[i].state | 连接状态:idle, connecting, success, connect-fail, auth-fail, recv-fail, fail |
ices[i].format.sample-rate | 采样率 |
ices[i].format.channel-num | 通道数 |
ices[i].format.bit-depth | 位宽 |
ices[i].format.codeing-format | ices格式: NONE, PCM, AAC, MP3 |