更新房间预热信息

请求地址

PUT  /api/live/v1/room/{id}/pre-heat
字段 是否可选 类型 描述
Authorization string 认证信息,格式:bearer ${token}
Accept-Language string 选择语言,(zh-CN)(zh-TW)(en-US)
默认值: zh-CN
Content-Type string application/json

请求参数

字段 是否可选 类型 描述
status int 预热开关,0:关,1:开
videoInfo object 视频信息,媒体库的视频信息,包含字段:coverURL、playInfo、playUrl、videoId
loop int 循环播放,0:关,1:开

请求示例

{
  "status":1,
  "videoInfo":{
    "coverURL": "https://vod-bj.hst.com/6a810c3077cd4e5c8f54a6dffc7cbea2/snapshots/5d0097849aee4f2492864524cb6acb09-00005.jpg",
    "playInfo": [{"definition":"OD","duration":"571.639","height":1080,"playURL":"https://vod-bj.hst.com/sv/5a7b6f8c-17d4add7256/5a7b6f8c-17d4add7256.mp4","size":6391949,"width":1920}],
    "playUrl": "https://vod-bj.hst.com/sv/5a7b6f8c-17d4add7256/5a7b6f8c-17d4add7256.mp4",
    "videoId":"asassasas"
  },
  "loop":0
}

响应参数

字段 类型 描述
resCode int 响应码
resMessage String 提示消息(根据language参数,选择语言返回)
data json 响应数据

成功返回

http/1.1 200 OK
{
    "resCode":1,
    "resMessage":"success",
    "data":{
        "status":1,
        "videoInfo":{},
        "loop":0
    }
}

失败返回

http/1.1 200 OK
{
    "resCode": -1,
    "resMessage": "xxx",
}

results matching ""

    No results matching ""