NovaCloud-CN
  1. 节目
NovaCloud-CN
  • API接入指南
  • HTTP常见状态码
  • 信发
    • 播放器
      • 播放器管理
        • 获取播放器列表
      • 获取播放器状态
        • 获取播放器运行状态
        • 获取播放器配置状态
    • 节目
      • 紧急插播
        • 单页紧急插播节目
        • 撤销紧急插播节目
      • 节目组件
        • 手绘时钟组件
      • 常规节目
        POST
      • 离线导出
        POST
      • 超规格开关
        POST
      • 节目超规格检测
        POST
    • 实时控制
      • NTP对时
      • 同步播放
      • 窗口截图
      • 亮度调节
      • 音量调节
      • 视频源切换
      • 屏幕状态控制
      • 播放器重启
      • 电源控制
    • 定时控制
      • 定时屏幕状态
      • 定时重启
      • 定时音量调节
      • 定时视频源切换
      • 定时亮度调节
    • 日志
      • 播放日志
        • 批量查询播放日志概要
        • 批量查询播放日志详情
        • 查询单个播放日志详情
        • 查询单个播放日志概要
      • 远程控制日志
    • 通知
      • 视频源变更通知
      • 节目变更通知
  • 监控
    • 附录-监控信息注意事项说明
    • 设备状态监控
      • 接收卡
        • 基本信息
        • 监控信息
        • 告警信息
        • 拓扑信息
      • 显示屏
        • 监控信息
        • 显示屏列表
        • 显示屏详情
      • 主控设备
        • 基础信息
        • 告警信息
        • 运行参数信息
      • 智能模组
        • 监控信息
        • 告警信息
      • 输入源
        • 监控信息
      • 单元板/箱体
        • 监控信息
      • 监控卡
        • 告警信息
        • 监控信息
      • 摄像头
        • 摄像头配置
        • 摄像头监控聚合信息
    • 亮度日志
      • 亮度历史
  • 其他
    • 第三方系统授权登录
      • 获取用户列表
      • 获取登陆链接
  1. 节目

离线导出

开发中
POST
/v2/player/program/offline-export
提示
1.
通过此接口可以为离线节目导出诺瓦播放协议
2.
支持T卡2.0.0以上版本以及Vplayer4.0.0以上版本

请求参数

Header 参数

Body 参数application/json

示例
{
    "programType": 1,
    "planVersion": "V2",
    "schedule": {
        "startDate": "2020-04-11",
        "endDate": "2060-05-12",
        "plans": [
            {
                "weekDays": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6
                ],
                "startTime": "00:00:00",
                "endTime": "23:00:00"
            }
        ]
    },
    "pages": [
        {
            "name": "a-page",
            "widgets": [
                {
                    "zIndex": 1,
                    "type": "DRAWN_DIGITAL_CLOCK",
                    "zone": "Asia/Shanghai",
                    "gmt": "GMT+08:00",
                    "regular": "$MM/$dd/$yyyy\n$E\n$N $hh:$mm:$ss",
                    "weekTemplates": [
                        "星期日",
                        "星期一",
                        "星期二",
                        "星期三",
                        "星期四",
                        "星期五",
                        "星期六"
                    ],
                    "suffixTemplates": [
                        "上午",
                        "下午"
                    ],
                    "textColor": "#ff0000",
                    "fontSize": 14,
                    "fontFamily": [
                        "Times",
                        "Georia",
                        "New York"
                    ],
                    "fontStyle": "Bold",
                    "fontIsUnderline": false,
                    "backgroundColor": "#00ff00",
                    "shadowEnable": false,
                    "shadowRadius": 10,
                    "shadowDx": 2,
                    "shadowDy": 2,
                    "shadowColor": "#00ff00",
                    "layout": {
                        "x": "0%",
                        "y": "0%",
                        "width": "50%",
                        "height": "50%"
                    }
                },
                {
                    "zIndex": 2,
                    "type": "PICTURE",
                    "size": 25943,
                    "md5": "8330dcaa949ceeafa54a66e8ad623300",
                    "duration": 5000,
                    "url": "test.jpg",
                    "layout": {
                        "x": "50%",
                        "y": "0%",
                        "width": "50%",
                        "height": "50%"
                    },
                    "inAnimation": {
                        "type": "NONE",
                        "duration": 1000
                    }
                },
                {
                    "zIndex": 3,
                    "type": "VIDEO",
                    "size": 1227710,
                    "md5": "f5b0f315800cb4befb89b5dff42f1e34",
                    "duration": 5000,
                    "url": "nova2019.mp4",
                    "fileName": "nova2019.mp4",
                    "layout": {
                        "x": "0%",
                        "y": "50%",
                        "width": "50%",
                        "height": "50%"
                    }
                },
                {
                    "zIndex": 4,
                    "type": "ARCH_TEXT",
                    "displayType": "SCROLL",
                    "backgroundColor": "#00000000",
                    "scrollAttribute": {
                        "animation": "MARQUEE_LEFT",
                        "speed": 3,
                        "isHeadTail": true
                    },
                    "duration": 5000,
                    "lines": [
                        {
                            "textAttributes": [
                                {
                                    "content": "API",
                                    "fontSize": 26,
                                    "textColor": "#337FE5",
                                    "isBold": true
                                },
                                {
                                    "content": "后面跟着的字",
                                    "fontSize": 16,
                                    "textColor": "#FF0000",
                                    "isBold": false
                                }
                            ]
                        },
                        {
                            "textAttributes": [
                                {
                                    "content": "你好我是正文内容",
                                    "fontSize": 16,
                                    "textColor": "#FF0000",
                                    "isUnderline": false
                                }
                            ]
                        }
                    ],
                    "layout": {
                        "x": "50%",
                        "y": "50%",
                        "width": "50%",
                        "height": "50%"
                    }
                }
            ]
        }
    ]
}

请求示例代码

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/program/offline-export' \
--header 'AppKey;' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "programType": 1,
    "planVersion": "V2",
    "schedule": {
        "startDate": "2020-04-11",
        "endDate": "2060-05-12",
        "plans": [
            {
                "weekDays": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6
                ],
                "startTime": "00:00:00",
                "endTime": "23:00:00"
            }
        ]
    },
    "pages": [
        {
            "name": "a-page",
            "widgets": [
                {
                    "zIndex": 1,
                    "type": "DRAWN_DIGITAL_CLOCK",
                    "zone": "Asia/Shanghai",
                    "gmt": "GMT+08:00",
                    "regular": "$MM/$dd/$yyyy\n$E\n$N $hh:$mm:$ss",
                    "weekTemplates": [
                        "星期日",
                        "星期一",
                        "星期二",
                        "星期三",
                        "星期四",
                        "星期五",
                        "星期六"
                    ],
                    "suffixTemplates": [
                        "上午",
                        "下午"
                    ],
                    "textColor": "#ff0000",
                    "fontSize": 14,
                    "fontFamily": [
                        "Times",
                        "Georia",
                        "New York"
                    ],
                    "fontStyle": "Bold",
                    "fontIsUnderline": false,
                    "backgroundColor": "#00ff00",
                    "shadowEnable": false,
                    "shadowRadius": 10,
                    "shadowDx": 2,
                    "shadowDy": 2,
                    "shadowColor": "#00ff00",
                    "layout": {
                        "x": "0%",
                        "y": "0%",
                        "width": "50%",
                        "height": "50%"
                    }
                },
                {
                    "zIndex": 2,
                    "type": "PICTURE",
                    "size": 25943,
                    "md5": "8330dcaa949ceeafa54a66e8ad623300",
                    "duration": 5000,
                    "url": "test.jpg",
                    "layout": {
                        "x": "50%",
                        "y": "0%",
                        "width": "50%",
                        "height": "50%"
                    },
                    "inAnimation": {
                        "type": "NONE",
                        "duration": 1000
                    }
                },
                {
                    "zIndex": 3,
                    "type": "VIDEO",
                    "size": 1227710,
                    "md5": "f5b0f315800cb4befb89b5dff42f1e34",
                    "duration": 5000,
                    "url": "nova2019.mp4",
                    "fileName": "nova2019.mp4",
                    "layout": {
                        "x": "0%",
                        "y": "50%",
                        "width": "50%",
                        "height": "50%"
                    }
                },
                {
                    "zIndex": 4,
                    "type": "ARCH_TEXT",
                    "displayType": "SCROLL",
                    "backgroundColor": "#00000000",
                    "scrollAttribute": {
                        "animation": "MARQUEE_LEFT",
                        "speed": 3,
                        "isHeadTail": true
                    },
                    "duration": 5000,
                    "lines": [
                        {
                            "textAttributes": [
                                {
                                    "content": "API",
                                    "fontSize": 26,
                                    "textColor": "#337FE5",
                                    "isBold": true
                                },
                                {
                                    "content": "后面跟着的字",
                                    "fontSize": 16,
                                    "textColor": "#FF0000",
                                    "isBold": false
                                }
                            ]
                        },
                        {
                            "textAttributes": [
                                {
                                    "content": "你好我是正文内容",
                                    "fontSize": 16,
                                    "textColor": "#FF0000",
                                    "isUnderline": false
                                }
                            ]
                        }
                    ],
                    "layout": {
                        "x": "50%",
                        "y": "50%",
                        "width": "50%",
                        "height": "50%"
                    }
                }
            ]
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "displaySolutions": {
        "md5": "1376da5787a1008d875c01af893a6900",
        "fileName": "display_solution.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/1727157294527/display_solution.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=sCRWAV4%2B1vref8IV0H4sXyCViDk%3D"
    },
    "playRelations": {
        "md5": "a36aba42bcf94b63c0ef9abadc8feaf8",
        "fileName": "RelationDescription.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/1727157294527/RelationDescription.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=pAbPAjVvJeHXodJYnTKDC6t26cs%3D"
    },
    "playSolutions": {
        "md5": "336459f8f6646685414d815e23b9dd6e",
        "fileName": "play_solution0.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/1727157294527/play_solution0.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=8Uv2D9jc0uFF31VuEfFEuHayeVw%3D"
    },
    "playlists": {
        "md5": "6094b47417d0b8e26e1f0ae86b95304b",
        "fileName": "playlist0.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/1727157294527/playlist0.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=Gfi6as9VQ7gHoRxhCz4qa1NFR7g%3D"
    },
    "scheduleConstraints": {
        "md5": "d72378022149d7f0e7f6a7ead62e7081",
        "fileName": "schedule_constraint0.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/1727157294527/schedule_constraint0.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=M6IGH6QwA5PRWO%2Fy48MAMb%2Fl70I%3D"
    },
    "planJson": {
        "md5": "5c134f93d12cd3b7fe4c5f29cbb47beb",
        "fileName": "planlist.json",
        "url": "https://novacloud-dev.oss-cn-hangzhou.aliyuncs.com/pingjl_sit/api/normal/2024-09-24/planlist.json?OSSAccessKeyId=LTAI5tE3ck6A2DexBqttYHVH&Expires=1727762095&Signature=37sPnng0AWjCYnLSYoACdpuNrEA%3D",
        "isSupportMd5Checkout": false,
        "programName": "API-202409241354552904-Program"
    }
}
修改于 2025-05-13 02:25:49
上一页
常规节目
下一页
超规格开关
Built with