定时亮度调节
测试中
POST
/v2/player/scheduled-control/brightness
提示
1.
2.
3.
请求参数
Header 参数
AppKey
string
接入键
默认值:
{{AppKey}}
Nonce
string
必需
CurTime
string
必需
CheckSum
string
请求签名
Body 参数application/json
playerIds
array[string]
播放器ID集合
schedules
array [object {6}]
定时计划
startDate
string
起始日期
endDate
string
截止日期
weekDays
array[integer]
生效星期配置
execTime
string
执行时间
type
integer
控制类型
value
integer
手动控制值
autoProfile
object
自动亮度配置表制
failValue
integer
备用亮度值
segments
array [object {3}]
亮度分段
示例
{
"playerIds": [
"17",
"8",
"7"
],
"schedules": [
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "07:30:00",
"type": 2
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "19:00:00",
"type": 1,
"value": 40
}
],
"autoProfile": {
"failValue": 50,
"segments": [
{
"environmentBrightness": 0,
"screenBrightness": 5,
"id": 0
},
{
"environmentBrightness": 10917,
"screenBrightness": 18,
"id": 1
},
{
"environmentBrightness": 21833,
"screenBrightness": 35,
"id": 2
},
{
"environmentBrightness": 32750,
"screenBrightness": 51,
"id": 3
},
{
"environmentBrightness": 43667,
"screenBrightness": 67,
"id": 4
},
{
"environmentBrightness": 54583,
"screenBrightness": 84,
"id": 5
},
{
"environmentBrightness": 65500,
"screenBrightness": 100,
"id": 6
}
]
}
}
示例代码
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/scheduled-control/brightness' \
--header 'AppKey;' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw '{
"playerIds": [
"17",
"8",
"7"
],
"schedules": [
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "07:30:00",
"type": 2
},
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"weekDays": [
1,
2,
3,
4,
5
],
"execTime": "19:00:00",
"type": 1,
"value":40
}
],
"autoProfile": {
"failValue": 50,
"segments": [
{
"environmentBrightness": 0,
"screenBrightness": 5,
"id": 0
},
{
"environmentBrightness": 10917,
"screenBrightness": 18,
"id": 1
},
{
"environmentBrightness": 21833,
"screenBrightness": 35,
"id": 2
},
{
"environmentBrightness": 32750,
"screenBrightness": 51,
"id": 3
},
{
"environmentBrightness": 43667,
"screenBrightness": 67,
"id": 4
},
{
"environmentBrightness": 54583,
"screenBrightness": 84,
"id": 5
},
{
"environmentBrightness": 65500,
"screenBrightness": 100,
"id": 6
}
]
}
}'
返回响应
🟢200成功
application/json
Body
success
array[string]
成功播放器ID集合
fail
array[string]
失败播放器ID集合
示例
{
"success": [
"8f29699ae6db7c584b60fa345c984a0e",
"f14cb76a01320c2c4fba81bc0cb4b3af",
"85dacf69cb2c57bb508a6d126d189383",
"8921b722dc7f6b1b1e20dafcf553a554",
"6c09ee7576f9ec298be5e20e21569adb",
"f4db107e317e841585bbd7a67573885e",
"9b9ce094e2b9d70576460bd4c475748d"
],
"fail": []
}
修改于 2025-04-18 07:24:08