控制台-频道-详情

优质
小牛编辑
131浏览
2023-12-01

控制台-频道-详情

接口URL

{youke-url}/console/Index.php?c=live&a=info&timestamp=1607677497&access_key=abc&sign=2aaad3386871992fc85997f54f0910d5c55c34fd

请求方式

POST

Content-Type

form-data

请求Body参数

参数示例值是否必填参数描述
idfOGpyOR21vVaHmYHNUBOX7C7z1j19vRu必填频道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"
        }
    }
}
参数示例值参数描述
code200响应状态码
msgsuccess提示信息
datanulljson array
idfOGpyOR21vVaHmYHNUBOX7C7z1j19vRu频道ID
account_id297帐户ID
nameantd修改频道名字
status1类似频道状态 0:关闭 1:打开 2:xxx...
live_status1频道状态:1=直播中;2=未开始;3=回看;4=已结束
link_status0连麦状态:1=下麦;2=上麦;3=主持人邀请中;4=观众申请中
link_apply_status0连麦申请状态:0=不允许;1=允许
streamKONZAJ流名字
stream_status0流状态 0:没有推流 1:正在推流
sub_stream_switcher1是否允许副流 0:否 1:允许
client_id0client id
coverhttps://mudutest.oss-cn-hangzhou.aliyuncs.com/image/297/652RXsAsPLh1605855397.jpeg封面
background-background
created_at2020-11-20 14:56:53创建时间
updated_at2020-12-04 10:54:04更新时间
deleted_at-删除时间
will_start2020-11-23 11:42:52开始直播时间
will_stop2020-11-23 14:01:47结束直播时间
last_start-上次直播开始时间
last_stop-上次直播结束时间
comment_enable1是否开启聊天 1开启 0关闭
media_id0回看视频ID
watch_amount0频道视频回看数
white_list_num0邀请人数
attend_num0到场人数
creator_id-管理员ID
creator_type0创建者类型:1=子管理员;2=audience(钉钉平台)
creator_name-创建者名称
watch_mode-观看方式:1:指定人员观看 2:公开观看 3:口令观看
live_method-直播方式:1=摄像头;2=有课助手;3=推流设备
department_id-频道级匿名人员部门
issue_enable1问答开关:0=关闭;1=开启
audience_enable1观众列表控制 0:否 1:允许
comment_screen_enable1聊天窗口控制 0:否 1:允许
ecdn_enable0是否开启ecdn
watermark_state1防录屏选择【1-无,2-水印,3-跑马灯】
watermark_style-防录屏样式
type11:单讲师2:多嘉宾
interactive_room_id20y18vv0目睹云互动房间ID
mrtc_addrmrtc://test-mrtc.myun.tv/live/20y18vv0mrtc主流地址
passcode-验证码/密码观看
most_live_concurrent20直播最高并发
most_replay_concurrent2点播最高并发
category_id0分类ID
inter_cut_media_id0插播视频ID
comment_need_checked0评论是否需要检查 0:不需要 1:需要
vod_list_status0点播列表开关
vod_replay0点播回看标志, 0:未设置,1:视频列表回看,2:点播列表回看
vod_set_hold111频道设置:第一位表示是1否0生成点播,第二位表示是1否0更新时间
category_code000分类code
stream_chan0流渠道:0 默认 ,1 srs
category_name默认分类分类名称
media_producing_flagfalsemedia_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 |