直播云

  • 创建云导播

    最近更新时间:2018-07-09 10:20:05

    API说明

    创建云导播,并开启云导播(创建云导播后,默认开启1小时)
    每位用户有创建云导播数量的限制,限制默认为1,如果需要调整限制,可以联系技术支持

    请求包

    POST /v1/casters
    Host: pili-caster.qiniuapi.com
    Authorization: <QiniuToken>
    Content-Type: application/json
    {
      "name": "",
      "staticKey": "",
      "monitors": {},
      "canvas": {},
      "pvwOutput": {},
      "pgmOutput": {},
      "layouts": {}
    }
    

    请求参数

    参数名称 必填 字段类型 取值范围 说明
    name string 允许1-18位,小写字母与数字组合 云导播名称
    staticKey string 默认值为16位小写英文+数字随机值 云导播静态密钥,留空会生成随机密钥
    monitors object - 监视器配置,支持0-7共8个频道,详细参数见监视器配置(monitors)详细参数
    canvas object - 画布配置,详细参数见画布配置(canvas)详细参数
    pvwOutput object - PVW输出配置,详细配置见PVW输出配置(pvwOutput)详细参数
    pgmOutput object - PGM输出配置,详细配置见PGM输出配置(pgmOutput)详细参数
    layouts object - 布局配置,支持0-7共8组配置,详细参数见布局配置(layouts)详细参数

    返回包

    200 OK
    {
      "id": "<id>",
      "uid": <uid>,
      "name": "<name>",
      "staticKey": "<staticKey>",
      "monitors": {
        "0": {
          "url": "<url>",
          "vol": 100,
          "muted": false
        },
        "1": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "2": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "3": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "4": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "5": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "6": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        },
        "7": {
          "url": "<url>",
          "vol": 100,
          "muted": true
        }
      },
      "canvas": {
        "resolution": "<resolution>",
        "height": <height>,
        "width": <width>
      },
      "timeSwitch": {
        "start": <start>,
        "stop": <stop>
      },
      "pvwOutput": {
        "play": "<url>",
        "channel": 0,
        "layout": 0
      },
      "pgmOutput": {
        "closed": false,
        "publish": "<url>",
        "ab": 64,
        "vb": 1000,
        "channel": 0,
        "overlay": {},
        "text": {},
        "emergencyMode": false,
        "emergencyChannel": 0,
        "delay": 0
      },
      "layouts": {
        "0": {
          "title": "<title>",
          "overlay": {},
          "text": {},
          "updateAt": <timestamp>
        }
      },
      "stage": 1,
      "status": "pending",
      "createAt": <timestamp>,
      "updateAt": <timestamp>
    }
    

    返回参数

    相关接口

    以上内容是否对您有帮助?
  • Close