控制台-频道-详情
优质
小牛编辑
138浏览
2023-12-01
控制台-频道-详情
接口URL
{youke-url}/console/Index.php?c=live&a=info×tamp=1607677497&access_key=abc&sign=2aaad3386871992fc85997f54f0910d5c55c34fd
请求方式
POST
Content-Type
form-data
请求Body参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
id | fOGpyOR21vVaHmYHNUBOX7C7z1j19vRu | 必填 | 频道ID |
成功响应示例
{
"code": 200,
"msg": "success",
"data": {
"id": "fOGpyOR21vVaHmYHNUBOX7C7z1j19vRu",
"account_id": 297,
"name": "antd修改",
"status": 1,
"live_status": 1,
"link_status": 0,
"link_apply_status": 1,
"stream": "KONZAJ",
"stream_status": 0,
"sub_stream_switcher": 1,
"client_id": 0,
"cover": "https://mudutest.oss-cn-hangzhou.aliyuncs.com/image/297/652RXsAsPLh1605855397.jpeg",
"background": null,
"created_at": "2020-11-20 14:56:53",
"updated_at": "2020-12-04 10:54:04",
"deleted_at": null,
"will_start": "2020-11-23 11:42:52",
"will_stop": "2020-11-23 14:01:47",
"last_start": "2020-11-23 14:03:46",
"last_stop": "2020-11-23 14:01:47",
"comment_enable": 1,
"media_id": 0,
"watch_amount": 1,
"white_list_num": 0,
"attend_num": 6,
"creator_id": null,
"creator_type": 0,
"creator_name": null,
"watch_mode": 2,
"live_method": 3,
"department_id": null,
"issue_enable": 1,
"audience_enable": 1,
"comment_screen_enable": 1,
"ecdn_enable": 0,
"watermark_state": 1,
"watermark_style": "",
"type": 1,
"interactive_room_id": "20y18vv0",
"mrtc_addr": "mrtc://test-mrtc.myun.tv/live/20y18vv0",
"passcode": "",
"most_live_concurrent": 20,
"most_replay_concurrent": 2,
"category_id": 0,
"inter_cut_media_id": 0,
"comment_need_checked": 0,
"vod_list_status": 0,
"vod_replay": null,
"vod_set_hold": "11",
"category_code": "000",
"stream_chan": 0,
"category_name": "默认分类",
"media_producing_flag": false,
"stream_url": {
"rtmp_pull": [
"rtmp://xiake1-live.mudu.tv/watch/KONZAJ"
],
"hls_pull": [
"https://xiake1-live.mudu.tv/watch/KONZAJ"
],
"rtmp_push": "rtmp://xiake1-pub.mudu.tv/watch/KONZAJ",
"sub_rtmp_pull": [
"rtmp://xiake1-live.mudu.tv/watch/KONZAJ_1"
],
"sub_hls_pull": [
"https://xiake1-live.mudu.tv/watch/KONZAJ_1"
],
"sub_rtmp_push": "rtmp://xiake1-pub.mudu.tv/watch/KONZAJ_1"
}
}
}
参数 | 示例值 | 参数描述 | |
---|---|---|---|
code | 200 | 响应状态码 | |
msg | success | 提示信息 | |
data | null | json array | |
id | fOGpyOR21vVaHmYHNUBOX7C7z1j19vRu | 频道ID | |
account_id | 297 | 帐户ID | |
name | antd修改 | 频道名字 | |
status | 1 | 类似频道状态 0:关闭 1:打开 2:xxx... | |
live_status | 1 | 频道状态:1=直播中;2=未开始;3=回看;4=已结束 | |
link_status | 0 | 连麦状态:1=下麦;2=上麦;3=主持人邀请中;4=观众申请中 | |
link_apply_status | 0 | 连麦申请状态:0=不允许;1=允许 | |
stream | KONZAJ | 流名字 | |
stream_status | 0 | 流状态 0:没有推流 1:正在推流 | |
sub_stream_switcher | 1 | 是否允许副流 0:否 1:允许 | |
client_id | 0 | client id | |
cover | https://mudutest.oss-cn-hangzhou.aliyuncs.com/image/297/652RXsAsPLh1605855397.jpeg | 封面 | |
background | - | background | |
created_at | 2020-11-20 14:56:53 | 创建时间 | |
updated_at | 2020-12-04 10:54:04 | 更新时间 | |
deleted_at | - | 删除时间 | |
will_start | 2020-11-23 11:42:52 | 开始直播时间 | |
will_stop | 2020-11-23 14:01:47 | 结束直播时间 | |
last_start | - | 上次直播开始时间 | |
last_stop | - | 上次直播结束时间 | |
comment_enable | 1 | 是否开启聊天 1开启 0关闭 | |
media_id | 0 | 回看视频ID | |
watch_amount | 0 | 频道视频回看数 | |
white_list_num | 0 | 邀请人数 | |
attend_num | 0 | 到场人数 | |
creator_id | - | 管理员ID | |
creator_type | 0 | 创建者类型:1=子管理员;2=audience(钉钉平台) | |
creator_name | - | 创建者名称 | |
watch_mode | - | 观看方式:1:指定人员观看 2:公开观看 3:口令观看 | |
live_method | - | 直播方式:1=摄像头;2=有课助手;3=推流设备 | |
department_id | - | 频道级匿名人员部门 | |
issue_enable | 1 | 问答开关:0=关闭;1=开启 | |
audience_enable | 1 | 观众列表控制 0:否 1:允许 | |
comment_screen_enable | 1 | 聊天窗口控制 0:否 1:允许 | |
ecdn_enable | 0 | 是否开启ecdn | |
watermark_state | 1 | 防录屏选择【1-无,2-水印,3-跑马灯】 | |
watermark_style | - | 防录屏样式 | |
type | 1 | 1:单讲师 | 2:多嘉宾 |
interactive_room_id | 20y18vv0 | 目睹云互动房间ID | |
mrtc_addr | mrtc://test-mrtc.myun.tv/live/20y18vv0 | mrtc主流地址 | |
passcode | - | 验证码/密码观看 | |
most_live_concurrent | 20 | 直播最高并发 | |
most_replay_concurrent | 2 | 点播最高并发 | |
category_id | 0 | 分类ID | |
inter_cut_media_id | 0 | 插播视频ID | |
comment_need_checked | 0 | 评论是否需要检查 0:不需要 1:需要 | |
vod_list_status | 0 | 点播列表开关 | |
vod_replay | 0 | 点播回看标志, 0:未设置,1:视频列表回看,2:点播列表回看 | |
vod_set_hold | 111 | 频道设置:第一位表示是1否0生成点播,第二位表示是1否0更新时间 | |
category_code | 000 | 分类code | |
stream_chan | 0 | 流渠道:0 默认 ,1 srs | |
category_name | 默认分类 | 分类名称 | |
media_producing_flag | false | media_producing_flag | |
stream_url | { |
"rtmp_pull": [
"rtmp://xiake1-live.mudu.tv/watch/KONZAJ"
],
"hls_pull": [
"https://xiake1-live.mudu.tv/watch/KONZAJ"
],
"rtmp_push": "rtmp://xiake1-pub.mudu.tv/watch/KONZAJ",
"sub_rtmp_pull": [
"rtmp://xiake1-live.mudu.tv/watch/KONZAJ_1"
],
"sub_hls_pull": [
"https://xiake1-live.mudu.tv/watch/KONZAJ_1"
],
"sub_rtmp_push": "rtmp://xiake1-pub.mudu.tv/watch/KONZAJ_1"
} | stream_url |