直播历史列表接口
  • 帮助与文档 直播 服务API 直播推流管理 直播历史列表接口

    视频列表接口

    • 接口定义

      接口描述

      获取视频列表

      接口地址

      /svc/api3/channel/list

      接口协议

      HTTP GET/POST

      HTTP HEADER

      Authorization=<authorization>

      version=<version>


    • 请求参数

      名称

      说明

      数据类型

      最大长度

      可空

      channel_web_id

      视频webid

      String

      100

      是

      channel_type

      视频类型(1:点播;2:直播)

      Integer

      10

      是

      key

      搜索关键字

      String

      50

      是

      page_num

      当前页

      Integer

      5

      是

      page_size

      每页记录数

      Integer

      5

      是

      create_time_start

      创建开始时间

      String

      30

      是

      create_time_end

      创建结束时间

      String

      30

      是

      source_web_id

      视频webid(获取直播关联录制视频列表时使用)

      String

      100

      是


    • 请求示例

      POST /svc/api3/channel/list HTTP/1.1
      Host: svc.suning.com
      Content-Type: text/html
      Authorization: <authorization>
      version: <version>

    • 响应内容

      名称

      数据类型

      说明

      id

      Integer

      id

      ppfeature

      String

      视频特征(文件标识)

      duration

      Integer

      视频时长(单位:秒)

      is_play

      Integer

      是否可播放

      category_id

      Integer

      分类id

      user_id

      Integer

      用户id

      channel_name

      String

      视频名称

      channel_summary

      String

      视频描述

      cover_image

      String

      封面图片

      channel_id

      Integer

      视频id

      channel_type

      Integer

      视频类型(1:点播;2:直播)

      create_time

      String

      创建时间

      channel_web_id

      String

      视频webid

      transcode_status

      Integer

      转码状态

      real_duration

      Integer

      视频时长(单位:秒)

      screen_shot

      String

      视频截图

      source_live

      String

      录制直播关联视频webid,无关联返回空


    • 响应示例

      
      {
          "data": [
              {
                  "id": 41487,
                  "duration": 0,
                  "displayable": 0,
                  "category_id": 894,
                  "user_id": 594,
                  "channel_name": "test",
                  "channel_summary": "test summary1",
                  "cover_image": "",
                  "channel_id": 156109340,
                  "channel_type": 2,
                  "create_time": 1451974117000,
                  "channel_web_id": "0a2dnqyWoKmfnaaL4K2hoqrhpKGgoa0",
                  "transcode_status": 0,
                  "live_status": "stopped",
                  "real_duration": 0,
                  "screen_shot": "http://live2image0.pplive.cn/liveplatform/156109340.jpg",
                  "live_start_time": 1451975017265,
                  "live_end_time": 1451981206608,
                  "time_limit": 1,
                  "live_vod_status": ""
              }
          ],
          "err": 0,
          "msg": "success"
      }
                                              
    • 文本导读:
    • 视频列表接口
苏宁视频云服务