请求URI: /openapi/v1/mss/upload

请求方式: PATCH

请求参数:

名称 位置 类型 描述 必须
token header string 调用令牌
fileName body string 文件名

请求示例:

curl -X PATCH "http://openapi.v1.guangdianyun.tv/openapi/v1/mss/upload" -H  "accept: application/json" -H  "token: ${token}" -H  "content-type: application/json" -d "{  \"fileName\": \"测试.mp4\"}"

响应示例:

// success
{
  "code": 200,
  "msg": "Created",
  "data": {
    "mssId": 3830328,
    "adaptive": "",
    "aid": 0,
    "aodianType": "upload",
    "app": "",
    "childId": 0,
    "duration": 0,
    "end": 0,
    "expireTime": 0,
    "filemtime": 0,
    "filename": "测试",
    "height": 0,
    "isForever": "1",
    "mss_type": "video",
    "origin": 0,
    "roomId": 0,
    "soldierId": 0,
    "start": 0,
    "status": 1,
    "stream": "",
    "thumbnail": "http://cdn-dvr.aodianyun.com/pic/long-vod/u/25492/images/eb159fda8515007e87b21d10b1e0b1da/0/0",
    "title": "测试",
    "transcoding": 0,
    "type": 0,
    "ucode": "c7f913bc5fbd8c8683248f77a9e1cee1",
    "uptime": 1591844239,
    "url": "http://25492.long-vod.cdn.aodianyun.com/u/25492/mp4/0x0/eb159fda8515007e87b21d10b1e0b1da.mp4",
    "user": 1003,
    "width": 0,
    "m3u8": {
      "m3u8": null
    },
    "size": {
      "size": 73260
    }
  }
}

// fail
{
  "code": 400,
  "msg": "完成文件上传操作失败,请检查文件名",
  "data": {}
}
最后编辑: 广电云技术部  文档更新时间: 2024-11-14 10:47   作者:广电云技术部