修改观看页信息

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

请求header

PUT /v1/activities/{频道id}/page
Authorization:Bearer {ACCESS TOKEN}
Content-Type:application/json

注:

请将上方的{ACCESS TOKEN}替换为您的ACCESS TOKEN

请将"{频道id}"替换您需要获取的频道id

请求payload

{
    "start_time" : "2016-09-10 08:00:00",
    "pc_logo" : "https://www.xnip.cn/wp-content/uploads/2021/docimg28/10-kigz0av10fj.png",
    "mobile_logo" : "https://www.xnip.cn/wp-content/uploads/2021/docimg28/10-kigz0av10fj.png",
    "banner" : "https://www.xnip.cn/wp-content/uploads/2021/docimg28/20-iae1ukys2bq.png",
    "cover_image" : "https://www.xnip.cn/wp-content/uploads/2021/docimg28/21-1tfzmzlvihy.png",
    "live_img" : "https://www.xnip.cn/wp-content/uploads/2021/docimg28/23-zfxrzjkziyt.png",
    "footer" : "版权信息",
    "bg_color" : "#FFFFFF",
    "show_qrcode" : true,
    "theme" : "default"
}

payload参数说明

参数参数说明参数类型是否必填备注
start_time直播开始时间datetime
pc_logoPC端视频LOGO地址string
mobile_logo移动端视频LOGO地址string
bannerbanner地址string
cover_image频道图标地址string
live_img直播窗口背景地址string
footer底部版权信息string
bg_color观看页背景色string请传RGB颜色,如:rgb(255,255,255,1)或十六进制颜色码
show_qrcode是否显示手机观看二维码bool传true为显示,false为不显示
theme观看页主题string传default为默认主题,tech为科技版,默认为default

返回

{
  "id": 4133,
  "name": "修改后的测试频道",
  "create_at": "2016-08-09 10:33:51",
  "live_status": 0,
  "watch_url": {
    "pc": "http://mudu.tv/watch/80261",
    "mobile": "http://mudu.tv/?c=activity&a=live&id=4133"
  },
  "embed_url": "http://mudu.tv/?a=index&c=show&id=4133&type=mobile",
  "page": {
    "start_time": "",
    "logo": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/24-giazhbrlsif.png",
    "pc_logo": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/24-giazhbrlsif.png",
    "mobile_logo": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/24-giazhbrlsif.png",
    "banner": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/25-fxw00xjgivo.com",
    "cover_image": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/28-fmbaly1m3dn.com",
    "live_img": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/30-t52crhu4tzi.com",
    "footer": "技术支持:目睹直播技术开发团队",
    "bg_color": "#dfebf1",
    "show_qrcode": false,
    "theme": "default"
  },
  "rtmp_publish_addr": "rtmp://video.mudu.tv/watch/jy1jk3",
  "hls_play_addr": "http://live.mudu.tv/watch/jy1jk3.m3u8",
  "rtmp_play_addr": "rtmp://live.mudu.tv/watch/jy1jk3"
}

返回参数说明

参数描述类型
id频道idinteger
name频道名称string
create_at创建时间datetime
live_status直播状态(0为没有直播,1为正在直播)integer
watch_url直播观看地址json array
pcPC端观看地址string
mobile手机端观看地址string
embed_url直播嵌入地址string
page直播页面数据json array
start_time直播开始时间datetime
logo此字段不再使用,值是pc_logostring
pc_logoPC端视频LOGO地址string
mobile_logo移动端视频LOGO地址string
bannerbanner地址string
cover_image频道图标地址string
live_img直播窗口背景地址string
footer底部版权信息string
rtmp_publish_addrRTMP发布地址string
bg_color观看页背景色string
show_qrcode是否显示手机观看二维码bool
theme观看页主题string
hls_play_addrhls播放地址(仅流量版用户有该字段)string
rtmp_play_addrrtmp播放地址(仅流量版用户有该字段)string