文档
测试

获取更新节目

POST
http://hx.buscoming.cn/Api/Dev/GetProgs

接口描述

请求设备节目

请求参数

参数名
类型
描述
必填
Id
string
示例: b3f42cf9f390db110c0b8291b881c7e9
必填

响应参数

参数名
类型
描述
必填
Result
boolean
示例:true
必填
Progs
array
数据列表
必填
Id
string
示例:33dd56c6-db43-4b4d-be6a-16c1fe6829eb // 节目Id
必填
Sn
int
示例:100 // 节目列表序号 计算日播放时间的时候要先根据此字段 从小到达排序 播放
必填
UserList_Id
string
示例:eb5adcf6-2e95-4f2d-93cd-37b814d400eb
必填
PlayArea
int
示例:1 //节目在那个分区播放 例如 主播区 数据区 语音区 字幕区 可通过获取系统枚举接口获取 AreaType
必填
DownTime
object
示例:null
必填
Name
string
示例:紧急插播解除警报 节目名
必填
ProgType
int
示例:1 节目类型 可通过获取系统枚举接口获取 ProgType
必填
PlayLen
int
示例:182 //播放时长 计算日播放时间的需要
必填
Para
object
数据字典 //语音冠名和 字幕节目获取该子端有值 可参考请求示例截图
必填
Text
string
做文明卫生人 创文明卫生城 //led走字内容
必填
FontName
string
8
必填
FontColor
string
#000000
必填
StayTime
string
1
必填
Voice
list
冠名列表
必填
Text
云本数字 //用于冠名语音播报 例如 云本数字提醒您212路即将到站
必填
EffDate
string
示例:2020-06-20T00:00:00 //节目有效期 开始时间
必填
ExpDate
string
示例:2020-06-30T00:00:00 //节目有效期 结束时间
必填
TimeSlot
string
示例:10:12:00-10:12:00 //节目播放时间段 通过此字段判断是否为时间段节目 如果该字段有值 则为时间段节目 如果开始时间和结束时间一样 则为定时插播节目 优先级最高 到时就要播 例如 10:00:00-10:00:00
必填
DispMode
int
示例:1 // 可通过获取系统枚举接口获取 DispMode 字幕区的节目 要特别关注该字段
必填
Speed
int
示例:1
必填
DayTimes
int
示例:10 // 每天播放限制次数,如:100次表示节目当天播放达到100次后就不再播放了。
必填
NeedRec
boolean
示例:true //是否需要监播 true为需要监播
必填
Loops
int
示例:1 //循环次数 排日播放列表需要考虑该字段 例如 节目1 播放时长为5 Loop为2 如果节目是图片则播放时间5*2 视频则排两遍到日播放列表
必填
MonitorTimes
int
示例:1 //监播次数 为1是 客户端随机随时监播2-5次 如果该值不为1 这按该字段实际值随机随时监播
必填
Memo
string
示例:
必填
UpTime
string
示例:2020-06-20T09:59:46
必填
ProgPriority
int
示例:0 // 节目优先级 0:默认播放 不用管 2:尽量满足播放 100:保证播放 和DayTimes配合使用
必填
Files
array
数据列表
必填
Sn
int
示例:1 // 节目文件播放顺序
必填
Id
string
示例:be70ca13-fe2c-40bd-b799-7346f9daf50b // 节目Id
必填
Name
string
示例:解除警报(1) // 文件名
必填
Md5
string
示例:7b0bf27c-6ecd-5867-2c98-a1826e2ea01c // 文件md5 用于校验
必填
FileExt
string
示例:.mp4 //文件后缀
必填
FileType
int
示例:1 // 文件类型 可见系统枚举接口 FileType
必填
FileSize
int
示例:37811797 //文件大小 单位字节
必填
PlayLen
int
示例:182 //文件播放时长
必填
PicSize
string
示例:1024x576 //文件宽高
必填
Label
object
示例:null
必填
Url
string
示例:http://hx.buscoming.cn/Files/be70ca13fe2c40bdb7997346f9daf50b.mp4 //文件地址 用于下载
必填

说明 / 示例

**请求示例** ![image.png](https://cos.easydoc.net/78131928/files/kbn220ep.png) ![image.png](https://cos.easydoc.net/78131928/files/kbn24118.png) ![image.png](https://cos.easydoc.net/78131928/files/kbn24qyg.png) ![image.png](https://cos.easydoc.net/78131928/files/kbn25a3i.png) **返回值** 建议用json在线工具查看 { "Result": true, "Progs": [ { "Id": "33dd56c6-db43-4b4d-be6a-16c1fe6829eb", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "紧急插播解除警报", "ProgType": 1, "PlayLen": 182.00, "Para": {}, "EffDate": "2020-06-20T00:00:00", "ExpDate": "2020-06-30T00:00:00", "TimeSlot": "10:12:00-10:12:00", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:59:46", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "be70ca13-fe2c-40bd-b799-7346f9daf50b", "Name": "解除警报(1)", "Md5": "7b0bf27c-6ecd-5867-2c98-a1826e2ea01c", "FileExt": ".mp4", "FileType": 1, "FileSize": 37811797, "PlayLen": 182.00, "PicSize": "1024x576", "Label": null, "Url": "http://hx.buscoming.cn/Files/be70ca13fe2c40bdb7997346f9daf50b.mp4" } ] }, { "Id": "1e969a5b-49bc-4f93-af51-557be00d6333", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "莲塘高粱", "ProgType": 1, "PlayLen": 16.00, "Para": {}, "EffDate": "2020-05-25T00:00:00", "ExpDate": "2020-11-25T00:00:00", "TimeSlot": "", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "全国", "UpTime": "2020-06-20T09:50:56", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "edd0ecd3-c845-4974-a5e8-5056d4a6072a", "Name": "莲塘高粱5月25日金", "Md5": "2b9fe9d0-0517-29f1-869e-a76c64c01520", "FileExt": ".mp4", "FileType": 1, "FileSize": 3281321, "PlayLen": 16.00, "PicSize": "1080x1144", "Label": null, "Url": "http://hx.buscoming.cn/Files/edd0ecd3c8454974a5e85056d4a6072a.mp4" } ] }, { "Id": "962145f2-3966-4810-9db3-80c86ab6f4af", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "紧急插播预先警报", "ProgType": 1, "PlayLen": 181.00, "Para": {}, "EffDate": "2020-06-20T00:00:00", "ExpDate": "2020-06-30T00:00:00", "TimeSlot": "10:00:00-10:00:00", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:59:21", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "3bd4363c-c746-4140-bf5a-53da07122cad", "Name": "预先警报(1)", "Md5": "bd88ee9d-3306-a0b8-4de3-d9e359384892", "FileExt": ".mp4", "FileType": 1, "FileSize": 37616852, "PlayLen": 181.00, "PicSize": "1024x576", "Label": null, "Url": "http://hx.buscoming.cn/Files/3bd4363cc7464140bf5a53da07122cad.mp4" } ] }, { "Id": "9abef59b-9555-475a-bb32-92af2f096aa8", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "雪溢水", "ProgType": 1, "PlayLen": 16.00, "Para": {}, "EffDate": "2020-06-06T00:00:00", "ExpDate": "2020-07-05T00:00:00", "TimeSlot": "", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T10:01:40", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "92781989-b06a-43f1-af0e-0259576c42df", "Name": "视频图片(桶装水)公交站台_1", "Md5": "916229f6-6e17-35a4-a37c-c6b287a9b304", "FileExt": ".mp4", "FileType": 1, "FileSize": 3117766, "PlayLen": 16.00, "PicSize": "1080x1144", "Label": null, "Url": "http://hx.buscoming.cn/Files/92781989b06a43f1af0e0259576c42df.mp4" } ] }, { "Id": "3f7a35d6-4281-4aad-b30a-dac3b2d17db2", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "测试", "ProgType": 1, "PlayLen": 16.00, "Para": {}, "EffDate": "2020-06-20T00:00:00", "ExpDate": "2020-06-30T00:00:00", "TimeSlot": "", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:48:53", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "ebbe5070-de79-4a58-b4b5-9bd74331ea5f", "Name": "2", "Md5": "a2f45194-7712-1ca9-0e11-4a528ecb0c6d", "FileExt": ".mp4", "FileType": 1, "FileSize": 3114113, "PlayLen": 16.00, "PicSize": "1080x1144", "Label": null, "Url": "http://hx.buscoming.cn/Files/ebbe5070de794a58b4b59bd74331ea5f.mp4" } ] }, { "Id": "36ede2a0-9a4d-4453-9b6a-e90bb5d7b09e", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 1, "DownTime": null, "Name": "紧急插播空袭警报", "ProgType": 1, "PlayLen": 182.00, "Para": {}, "EffDate": "2020-06-20T00:00:00", "ExpDate": "2020-06-30T00:00:00", "TimeSlot": "10:06:00-10:06:00", "DispMode": 1, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T10:00:04", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "3aea776a-a0f6-416f-a361-089e849ea385", "Name": "空袭警报(1)", "Md5": "f33807f8-38a2-b848-cf90-6b8ab25ae6ae", "FileExt": ".mp4", "FileType": 1, "FileSize": 37841865, "PlayLen": 182.00, "PicSize": "1024x576", "Label": null, "Url": "http://hx.buscoming.cn/Files/3aea776aa0f6416fa361089e849ea385.mp4" } ] }, { "Id": "40507b10-5405-4bc9-9c7f-70cf24a0d8d2", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 3, "DownTime": null, "Name": "上饶字幕", "ProgType": 15, "PlayLen": 10.00, "Para": { "Text": "做文明卫生人 创文明卫生城 ", "FontName": "8", "FontColor": "#000000", "StayTime": "1" }, "EffDate": "2020-05-07T00:00:00", "ExpDate": "2021-05-07T00:00:00", "TimeSlot": "", "DispMode": 2, "Speed": 1, "DayTimes": 10, "NeedRec": false, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:58:44", "ProgPriority": 0, "Files": [] }, { "Id": "4172174a-4afa-4dc8-bf74-340c382be7ee", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 4, "DownTime": null, "Name": "景德镇名称区图片", "ProgType": 3, "PlayLen": 10.00, "Para": {}, "EffDate": "2019-12-16T00:00:00", "ExpDate": "2020-11-30T00:00:00", "TimeSlot": "", "DispMode": 2, "Speed": 1, "DayTimes": 10, "NeedRec": false, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:49:47", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "b02fa10f-5c11-4c6b-8b45-75030b54cf56", "Name": "1be44ef0fbce67a4910a7b7c40e4860", "Md5": "a9c4ff6c-380b-adb3-8418-d0f41a8ea0e3", "FileExt": ".jpg", "FileType": 3, "FileSize": 52666, "PlayLen": 5.00, "PicSize": "210x150", "Label": null, "Url": "http://hx.buscoming.cn/Files/b02fa10f5c114c6b8b4575030b54cf56.jpg" } ] }, { "Id": "548e53de-d89f-4fb3-9b1f-3ead7e22d836", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 9, "DownTime": null, "Name": "全国公益通栏", "ProgType": 3, "PlayLen": 5.00, "Para": {}, "EffDate": "2020-06-19T00:00:00", "ExpDate": "2021-06-19T00:00:00", "TimeSlot": "", "DispMode": 2, "Speed": 1, "DayTimes": 10, "NeedRec": true, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:49:10", "ProgPriority": 0, "Files": [ { "Sn": 1, "Id": "65b38c8f-137a-4fab-b040-6095977cfc3f", "Name": "945cd4f54a6c4a3794d64f968732b647", "Md5": "8f847269-e7e1-10e5-1e7d-a69446fafb7c", "FileExt": ".jpg", "FileType": 3, "FileSize": 226561, "PlayLen": 5.00, "PicSize": "1080x375", "Label": null, "Url": "http://hx.buscoming.cn/Files/65b38c8f137a4fabb0406095977cfc3f.jpg" }, { "Sn": 2, "Id": "17a30c0e-8178-4015-8d4a-5eda10b07150", "Name": "b96c632abe1d4030ad7b476dbd8f0e90", "Md5": "ac6ed079-2563-5772-37c3-056bc0bc7e53", "FileExt": ".jpg", "FileType": 3, "FileSize": 66599, "PlayLen": 5.00, "PicSize": "1080x250", "Label": null, "Url": "http://hx.buscoming.cn/Files/17a30c0e817840158d4a5eda10b07150.jpg" }, { "Sn": 3, "Id": "99cfadc4-6e69-4205-882c-9f82cd5fcb85", "Name": "c1ea87cadf25467cb9ab6acf42a78591", "Md5": "b90bbeea-a9b5-2ba2-bc4c-43d6b2c39d9b", "FileExt": ".jpg", "FileType": 3, "FileSize": 287133, "PlayLen": 5.00, "PicSize": "1080x500", "Label": null, "Url": "http://hx.buscoming.cn/Files/99cfadc46e694205882c9f82cd5fcb85.jpg" }, { "Sn": 4, "Id": "92bfb190-1d57-4d7a-9c83-5d2b41cdb4ae", "Name": "未标题-4", "Md5": "388cca4d-955a-3995-c6fe-b0a6490f199f", "FileExt": ".jpg", "FileType": 3, "FileSize": 155937, "PlayLen": 5.00, "PicSize": "1080x125", "Label": null, "Url": "http://hx.buscoming.cn/Files/92bfb1901d574d7a9c835d2b41cdb4ae.jpg" } ] }, { "Id": "3eaaf2d1-4db6-4aa2-9f16-018ac9790b93", "Sn": 100, "UserList_Id": "eb5adcf6-2e95-4f2d-93cd-37b814d400eb", "PlayArea": 50, "DownTime": null, "Name": "测试语音", "ProgType": 13, "PlayLen": 10.00, "Para": { "Voice": [ { "Text": "云本数字", "Caption": "云本数字" } ] }, "EffDate": "2020-06-20T00:00:00", "ExpDate": "2020-06-30T00:00:00", "TimeSlot": "", "DispMode": 2, "Speed": 1, "DayTimes": 10, "NeedRec": false, "Loops": 1, "MonitorTimes": 1, "Memo": "", "UpTime": "2020-06-20T09:58:07", "ProgPriority": 0, "Files": [] } ] } **指定播放次数节目** ProgPriority=2 尽量满足播放暂时和默认播放一样不要管 就当是正常默认播放节目 ProgPriority=100 下面截图为指定日播放次数为360的节目编排 保证播放![image.png](https://cos.easydoc.net/78131928/files/kcoddyv9.png) ![image.png](https://cos.easydoc.net/78131928/files/kcodh197.png)