开启回看
1、直播回看文件格式仅支持m3u8。
2、回看时长用户可以配置,最大支持7天,即用户请求回看内容,最多可以请求最近7天的直播回看内容。
3、域名格式:http://{restartDomain}/{appName}/{streamName}/index.m3u8?starttime=1527756680&endtime=1527760280 (unix时间戳)
4、starttime-endtime最长可支持24小时,可跨天
PUT
https://live.jdcloud-api.com/v1/liveRestart:open
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
restartDomain | String | True | 回看的播放域名 |
名称 | 类型 | 描述 |
---|---|---|
requestId | String | requestId |
返回码 | 描述 |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |
PUT
https://live.jdcloud-api.com/v1/liveRestart:open
{ "restartDomain": "restart.yourdomain.com" }
{ "requestId": "bgvmivir54gddpgi764se9f4kfr7ge41" }