直播云

  • 直播云 > API 文档 > 云导播API > 云导播管理API > 更新云导播

    更新云导播

    最近更新时间: 2019-01-07 10:47:06

    API说明

    更新云导播,第一级参数支持部分参数更新,第二级参数起需要全量更新。

    请求包

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

    请求参数

    参数名称 必填 字段类型 取值范围 说明
    CasterID string - 云导播唯一ID
    staticKey string 默认值为16位小写英文+数字随机值 云导播静态密钥,留空会生成随机密钥
    monitors object - 监视器配置,支持0-7共8个频道,详细参数见监视器配置(monitors)详细参数
    pvwOutput object - PVW输出配置,详细配置见PVW输出配置(pvwOutput)详细参数
    pgmOutput object - PGM输出配置,详细配置见PGM输出配置(pgmOutput)详细参数
    layouts object - 布局配置,支持0-7共8组配置,详细参数见布局配置(layouts)详细参数
    storage object - 上传配置,支持Bucket和Domain配置,详细参数见布局配置(storage)详细参数

    返回包

    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>
        }
      },
        "storage": {
            "bucket":"",
            "domain":""
        }
      "stage": 1,
      "status": "pending",
      "createAt": <timestamp>,
      "updateAt": <timestamp>
    }
    

    返回参数

    相关接口

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