修改第三方推流平台
请求地址
PUT /api/live/v1/room/{id}/thirdparty-platform/{platformId}
| 字段 |
是否可选 |
类型 |
描述 |
| Authorization |
否 |
string |
认证信息,格式:bearer ${token} |
| Accept-Language |
是 |
string |
选择语言,(zh-CN)(zh-TW)(en-US) 默认值: zh-CN |
| Content-Type |
是 |
string |
application/x-www-form-urlencoded |
请求参数
| 字段 |
是否可选 |
类型 |
描述 |
| name |
是 |
String |
名称 |
| type |
是 |
String |
类型 |
| rtmpAddr |
是 |
String |
推流地址 |
| liveCode |
是 |
String |
直播码 |
| attr |
是 |
String |
属性 |
响应参数
| 字段 |
类型 |
描述 |
| resCode |
int |
响应码 |
| resMessage |
String |
提示消息(根据language参数,选择语言返回) |
| data |
json |
响应数据 |
成功返回
http/1.1 200 OK
{
"resCode": 1,
"resMessage": "success",
"data":{
"id":11,
"name":"斗鱼",
"type":"DOUYU",
"pushStatus":true,
"rtmpAddr":"rtmp://xxxxxxxxx",
"liveCode":"xxxxxxxxxx",
"attr":""
}
}
### 失败返回
```json
http/1.1 200 OK
{
"resCode": -1,
"resMessage": "xxx"
}