单页紧急插播节目
POST
/v2/player/emergency-program/page
提示
1.
2.
3.
请求参数
Header 参数
AppKey
string
接入键
默认值:
{{AppKey}}
Nonce
string
必需
CurTime
string
必需
CheckSum
string
请求签名
Body 参数application/json
playerIds
array[string]
必需
attribute
object
紧急插播基本属性
spotsType
string
必需
normalProgramStatus
string
必需
duration
number
必需
timingTime
string
可选
backgroundColor
string
可选
page
array [object {2}]
必需
name
string
页面名称
widgets
array [object {9}]
页面上的组件集合
示例
{
"playerIds": [
"52a66b84e5e241908a5dd317e82556d8"
],
"attribute": {
"duration": 20000,
"normalProgramStatus": "PAUSE",
"spotsType": "IMMEDIATELY"
},
"page": {
"name": "a-immediately",
"widgets": [
{
"duration": 10000,
"inAnimation": {
"duration": 1000,
"type": "NONE"
},
"layout": {
"height": "20%",
"width": "100%",
"x": "0%",
"y": "60%"
},
"md5": "8330dcaa949ceeafa54a66e8ad623300",
"size": 25943,
"type": "PICTURE",
"url": "http://vnnox-public.oss-cn-qingdao.aliyuncs.com/myf/test.jpg",
"zIndex": 1
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-cn.vnnox.com/v2/player/emergency-program/page' \
--header 'AppKey;' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw '{
"playerIds": [
"52a66b84e5e241908a5dd317e82556d8"
],
"attribute": {
"duration": 20000,
"normalProgramStatus": "PAUSE",
"spotsType": "IMMEDIATELY"
},
"page": {
"name": "a-immediately",
"widgets": [
{
"duration": 10000,
"inAnimation": {
"duration": 1000,
"type": "NONE"
},
"layout": {
"height": "20%",
"width": "100%",
"x": "0%",
"y": "60%"
},
"md5": "8330dcaa949ceeafa54a66e8ad623300",
"size": 25943,
"type": "PICTURE",
"url": "http://vnnox-public.oss-cn-qingdao.aliyuncs.com/myf/test.jpg",
"zIndex": 1
}
]
}
}'
返回响应
🟢200成功
application/json
Body
success
array[string]
必需
fail
array[string]
必需
示例
{
"success": [
"6226495f8a030b075e2f6757236620e2"
],
"fail": []
}
修改于 2024-08-07 01:35:02