DYH云

DYH开放接口


获取视频库里的视频

简要描述
  • 获取视频库里的视频
请求URL
  • api/video/videoList
请求方式
  • GET
参数
参数名 必选 类型 说明
cateId int 分类id
page int 页数
limit int 每页数量
返回示例
 {
  "code": 20000,
  "msg": "success",
  "time": "2021-09-28 17:37:02",
  "data": {
    "list": [
      {
        "video_id": 9173,
        "thumb": "",
        "video_name": "4.5m.mp4",
        "duration": "00:00:00",
        "size": "0MB",
        "url": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/index.m3u8",
        "asset_id": "877f5b9944123579c5db9ca34496a6cf",
        "height": 0,
        "transcode_url_index": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/index.m3u8",
        "addTime": "2021-09-28 16:49:06",
        "down_url": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/840ecaa2dc97619ba1248f852ebb0b6b_0.m3u8",
        "quality_list": [
          {
            "quality": "全高清",
            "url": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/840ecaa2dc97619ba1248f852ebb0b6b_0.m3u8",
            "duration": "00:00:15",
            "size": "4.1MB"
          },
          {
            "quality": "高清",
            "url": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/840ecaa2dc97619ba1248f852ebb0b6b_1.m3u8",
            "duration": "00:00:15",
            "size": "1.97MB"
          },
          {
            "quality": "标清",
            "url": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/877f5b9944123579c5db9ca34496a6cf/play_video/840ecaa2dc97619ba1248f852ebb0b6b_2.m3u8",
            "duration": "00:00:15",
            "size": "1.22MB"
          }
        ]
      }
    ],
    "count": 1
  }
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML