请求URI: /openapi/v1/channel
请求方式: GET
请求参数:
名称 | 位置 | 类型 | 描述 | 必须 | 默认值 | 可选值 |
---|---|---|---|---|---|---|
token | header | string | 调用令牌 | 是 | ||
id | query | integer | 直播间ID | 是 | ||
type | query | string | 直播间类型 | 否 | live | live radio tv |
返回字段说明:
名称 | 类型 | 说明 |
---|---|---|
id | int | 直播间ID |
uin | int | 组织ID |
aid | int | 频道ID |
childId | int | 子账号ID |
oldId | string | 旧版节目ID |
name | string | 直播间名称 |
dmsTopicId | string | dms话题随机 |
trailerUrl | string | 预告地址 |
trailerStatus | int | 预告状态,0不启用,1启用 |
advertWords | string | 文字广告 |
advertWordsLink | string | 广告链接 |
shareTitle | string | 分享标题 |
shareSubTitle | string | 分享副标题 |
shareImg | string | 分享图片 |
shareNum | int | 累计分享次数 |
mpsLssAppId | string | 普通直播实例id |
mpsDynamicVodAppId | string | 动态点播实例id |
mpsBackground | string | 播放背景图 |
layoutColor | string | 界面配色 |
countdownStatus | int | 倒计时状态,1启用0禁用 |
countdownWords | string | 倒计时文字 |
countdownTime | int | 倒计时时间 |
chatAuthModel | int | 聊天审核类型1:逐条审核2敏感审核3自动过滤 |
chatLogin | int | 聊天是否需要登录,1需要0不需要 |
chatDisable | int | 全员是否聊天禁用 |
chatAdminName | string | 聊天管理员名 |
chatAdminAva | string | 聊天管理员头像 |
chatSee | int | 未审核评论是否可见1是0否 |
commentCallBack | string | 评论回调 |
removeCommentCallBack | string | 删除评论回调 |
customWatchTrendNumMin | int | 观看量趋势最小值 |
customWatchTrendNumMax | int | 观看量趋势最大值 |
customWatchLimitMax | int | 观看量增长上限 |
customWatchGrowStatus | int | 增长状态1开启2关闭 |
isDisplayWatchNum | int | 是否展示观看量1是2否 |
customPraiseTrendNumMin | int | 点赞量趋势最小值 |
customPraiseTrendNumMax | int | 点赞量趋势最大值 |
customPraiseGrowStatus | int | 点赞增长状态1开启2关闭 |
publishTaskId | int | 发布任务id |
publishType | int | 1信源2导播台3实编 |
publishTaskMakeAppId | string | 发布任务绑定的制作导播台实例id |
voteShowStatus | int | 是否显示投票0否,1是 |
introduce | string | 简介 |
logo | string | 聚合页logo |
status | int | 状态1正常2回收站 |
defaultUserAva | string | 用户默认头像 |
rewardStatus | int | 现金打赏状态1开启2关闭 |
rewardName | string | 打赏昵称 |
rewardPhoto | string | 打赏头像 |
rewardConfig | string | 打赏配置 |
rewardGiftStatus | int | 礼物打赏状态1开启2关闭 |
imageTextStatus | int | 图文直播状态 |
needPay | int | 是否需要付费1是2否 |
tryTime | int | 可试看时间 |
price | float64 | 费用 |
pcBackground | string | pc端背景图 |
isSendRed | int | 用户是否支持发红包 |
drawStatus | int | 提现浮窗状态1开启2隐藏 |
leagueId | int | 所在联盟Id |
needPassword | int | 是否加密直播间1是2否 |
tips | string | 加密提示 |
password | string | 密码 |
copyLssApp | string | 第三方复制app |
copyLssStream | string | 第三方复制stream |
soldierId | int | 单兵Id |
streamType | int | 流格式1.16:9 2.4:3 |
playStatus | int | 是否开启直播 |
lssPublishUrl | string | 第三方拉取的拉流地址 |
isRecordRedPacket | int | 红包记录是否入聊天表 |
isTryWatch | int | 是否开启试进 0否 1是 |
payExtTime | int | 付费有效时间 |
payResetTime | int | 设置付费时间 |
isInvitation | int | 是否开启邀请 |
leagueCheck | int | 是否联盟可见 |
vodUrl | string | 点播地址 |
vodStatus | int | 点播状态,0关闭,1开启 |
watchNum | int | 观看数 |
customWatchNum | int | 自定义观看数 |
customWatchStatus | int | 自定义观看数状态,0关闭,1开启 |
praiseNum | int | 点赞数 |
customPraiseNum | int | 自定义点赞数 |
customPraiseStatus | int | 自定义点赞数状态,0关闭,1开启 |
createTime | int | 创建时间,时间戳,秒 |
updateTime | int | 更新时间,时间戳,秒 |
liveBegin | int | 开始直播时间,时间戳,秒 |
liveEnded | int | 结束直播时间,时间戳,秒 |
liveNowStatus | int | 直播状态,0未直播 1直播中 -1已结束 2回放中 3预告中 4未开始 |
url | string | 直播间地址 |
screenDirection | string | 屏幕方向 horizontal横 vertical竖 |
panelVersion | string | 直播间类型 live:现场直播,slowlive:慢直播,teacherlive:讲师直播,radio:电台直播,tv:电视直播 |
livePublishUrl | string | 直播间推流地址 |
livePlayHlsUrl | string | m3u8直播流地址 |
playBackUrl | string | 回放视频流地址 |
请求示例:
curl -X GET "https://openapi.v1.guangdianyun.tv/openapi/v1/channel?id=39481" -H "accept: application/json" -H "token: token"
响应示例:
{
"code": 200,
"msg": "OK",
"data": {
"id": 43613,
"uin": 1003,
"aid": 0,
"childId": 0,
"oldId": "",
"dmsTopicId": "43613_pah2vmvp",
"name": "竖屏直播",
"trailerUrl": "",
"trailerStatus": 0,
"vodUrl": "",
"vodStatus": 0,
"advertTopStatus": 0,
"advertWords": "",
"advertWordsLink": "",
"shareTitle": "",
"shareSubTitle": "",
"shareImg": "",
"shareNum": 0,
"mpsLssAppId": "7BBBbHzzbHUJWPPy",
"mpsDynamicVodAppId": "f6bNm1Nu16bSPJWU",
"mpsBackground": "",
"layoutColor": "",
"countdownStatus": 0,
"countdownWords": "",
"countdownTime": 0,
"chatAuthModel": 2,
"chatLogin": 0,
"chatDisable": 0,
"chatAdminName": "",
"chatAdminAva": "",
"chatSee": 0,
"commentCallBack": "",
"removeCommentCallBack": "",
"watchNum": 0,
"praiseNum": 1,
"customWatchStatus": 0,
"customWatchNum": 0,
"customWatchTrendNumMin": 0,
"customWatchTrendNumMax": 0,
"customWatchLimitMax": 0,
"customWatchGrowStatus": 1,
"isDisplayWatchNum": 1,
"customPraiseStatus": 0,
"customPraiseNum": 0,
"customPraiseTrendNumMin": 0,
"customPraiseTrendNumMax": 0,
"customPraiseGrowStatus": 0,
"publishTaskId": 0,
"publishType": 0,
"publishTaskMakeAppId": "",
"voteShowStatus": 0,
"cameraMainName": "",
"cameraShowStatus": 0,
"introduce": "",
"logo": "",
"liveStatus": 0,
"status": 1,
"createTime": 1591595465,
"updateTime": 0,
"defaultUserAva": "",
"rewardStatus": 2,
"rewardName": "",
"rewardPhoto": "",
"rewardConfig": "",
"rewardGiftStatus": 2,
"imageTextStatus": 2,
"vodUrl_ext": "",
"advertMiddleStatus": 0,
"advertTextStatus": 0,
"needPay": 2,
"tryTime": 0,
"price": 0,
"pcBackground": "",
"isSendRed": 1,
"drawStatus": 2,
"advertMiddleIsclose": 1,
"advertTopIsclose": 0,
"reprintStatus": 0,
"reprintId": 0,
"leagueId": 0,
"pullStream": 0,
"needPassword": 2,
"tips": "",
"password": "",
"lssApp": "lms_25492",
"stream": "program_live_channel_43613",
"copyLssApp": "",
"copyLssStream": "",
"soldierId": 0,
"streamType": 1,
"playStatus": 1,
"lssPublishUrl": "",
"isRecordRedPacket": 1,
"chatCountStatus": 0,
"liveBegin": 1591977600,
"liveEnded": 1592064000,
"isTryWatch": 0,
"payExtTime": 0,
"payResetTime": 0,
"isInvitation": 0,
"leagueCheck": 0,
"menu": [],
"livePlayHlsUrl": "//25492.hlsplay.aodianyun.com/lms_25492/program_live_channel_43613.m3u8",
"livePublishUrl": "rtmp://25492.lsspublish.aodianyun.com/lms_25492/program_live_channel_43613",
"livePlayRtmpUrl": "rtmp://25492.lssplay.aodianyun.com/lms_25492/program_live_channel_43613",
"liveNowStatus": -1,
"chatNum": 0,
"url": "https://web.guangdianyun.tv/live/43613?uin=1003",
"screenDirection":"vertical"
}
}
最后编辑: 广电云技术部 文档更新时间: 2024-11-14 10:47 作者:广电云技术部