开发者平台 / 视频管理系统(VMS)/ API功能接口定义 / 直播管理
4.9.19 认证下的获取直播详情
接口说明:
名称 | 内容 | |
---|---|---|
URL | https://xxx/tums/live/v1/getLiveDetailWithUserAuth | |
功能说明 | 获取直播详情。该接口可不登录,在http端口(18080)访问 | |
使用限制 | 无 |
请求参数:
参数名称 | 参数描述 | |
---|---|---|
devId String | 设备ID | |
password String | 密码,HTML5模板的密码 |
返回参数:
参数名称 | 参数描述 | ||
---|---|---|---|
error_code | 返回码,0 – 成功,其他- 失败,具体请参考返回码章节 | ||
result |
devId String | 设备ID | |
devName String | 监控点名称 | ||
mainUrl String | 高清直播地址 | ||
minorUrl String | 流畅直播地址 | ||
startTime int | 开始时间,秒数 | ||
endTime int | 结束时间,秒数 | ||
weekDays int | 星期数,每个bit位代表一天,星期天存第一个bit位,如0x01,代表勾选星期天,0x7f,代表全部勾选 | ||
htmlStatus int | 是否启用h5模板,0:关闭, 1:开启 | ||
liveHtmlVo |
devid String | 设备id | |
title String | 标题 | ||
streamType int | 清晰度,0:高清,1:流畅 | ||
videoDescription String | 视频描述 | ||
pictureName String | 封面图片名称 | ||
pictureUrl String | 视频封面地址 | ||
backgroundColor int | 背景颜色,0:白,1:黑,2:灰 | ||
password String | 播放密码 | ||
playTimeStatus int | 单次播放时间状态 | ||
playTime int | 单次播放时间,秒数 | ||
templateName String | 模板名称 | ||
templateId int | 模板ID |
代码示例
https://xxx/tums/live/v1/getLiveDetailWithUserAuth request: { "devId":"1", "password":"123456" } response: { "result": [ { "devId": "1", "devName": "aaa", "mainUrl":"http://asdsadsadasd", "minorUrl":"http://asdsadsadasd", "startTime": 0, "endTime": 86340, "weekDays": 127, "liveHtmlVo": { "devId": null, "title": "标题", "streamType": 0, "pictureUrl": "/static/live/bafd4fde-d2e8-4882-a236-92d9bd6c5328.png", "pictureName": null, "videoDescription": "欢迎来到TP-LINK IPC~", "backgroundColor": 0, "password": "123456", "playTimeStatus": 0, "playTime": 86400, "templateId": 2, "templateName": "test" }, "htmlStatus": 1 } ], "error_code": 0 }