API说明
创建云导播,并开启云导播(创建云导播后,默认开启1小时)
每位用户有创建云导播数量的限制,限制默认为1,如果需要调整限制,可以联系技术支持
请求包
POST /v1/casters
Host: pili-caster.qiniuapi.com
Authorization: <QiniuToken>
Content-Type: application/json
{
"name": "",
"staticKey": "",
"monitors": {},
"canvas": {},
"pvwOutput": {},
"pgmOutput": {},
"layouts": {},
"storage": {}
}
请求参数
参数名称 | 必填 | 字段类型 | 取值范围 | 说明 |
---|---|---|---|---|
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)详细参数 |
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>
}
返回参数
- 详细参数说明见云导播参数说明
相关接口
文档反馈
(如有产品使用问题,请 提交工单)