获取终端节目列表
# 获取终端节目列表
Path:
/api/vsns.json
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 获取终端的所有节目列表
返回数据
| 名称 | 类型 | 示例 | 描述 |
|---|---|---|---|
| contents | Array | [] | 按节目来源分类,每一类作为数值的一个元素 |
| content | Array | [] | 一类节目来源中的所有节目的列表 |
| ressize | int | 727420 | 一类节目来源中的所有节目包含的素材总大小 |
| unused | int | 42344 | 一类节目来源中的所有未使用的素材总大小 |
| type | String | lan | 节目来源, lan(局域网), internet(云), usb(u盘) |
| name | String | 1.vsn | 节目文件的名称 |
| playing | Object | {} | 正在播放的节目的信息 |
| ableToEdit | boolean | false | 节目是否可以编辑(一般单机web节目可编辑) |
| lastModifiedTime | long | 123... | 文件的最后修改时间的时间戳 |
| size | long | 68326 | 文件的大小 |
| md5 | String | 一般为空,无实际含义 | |
| publishedmd5 | String | 一般为空,无实际含义 |
响应示例
{
"playing": {
"type": "lan",
"name": "new.vsn"
},
"contents": [{
"type": "lan",
"content": [{
"name": "12345.vsn",
"size": 7665246,
"md5": "882024f3d5869aad992a58fec123a19c",
"publishedmd5": "8B2E1E8BE7588F7862A47DA9D7C7F670"
},
{
"name": "256256.vsn",
"size": 7665246,
"md5": "882024f3d5869aad992a58fec123a19c",
"publishedmd5": "8B2E1E8BE7588F7862A47DA9D7C7F670"
}
]
},
{
"type": "usb-synced",
"content": [{
"name": "new.vsn",
"size": 7665246,
"md5": "882024f3d5869aad992a58fec123a19c",
"publishedmd5": "8B2E1E8BE7588F7862A47DA9D7C7F670"
}]
},
{
"type": "usb",
"content": [{
"name": "new.vsn",
"size": 7665246,
"md5": "882024f3d5869aad992a58fec123a19c",
"publishedmd5": "8B2E1E8BE7588F7862A47DA9D7C7F670"
}]
},
{
"type": "lan",
"content": [{
"name": "new.vsn",
"size": 11454370,
"md5": "eb896b2c17d5638f7fbd18db7d3e0c4",
"publishedmd5": "8B2E1E8BE7588F7862A47DA9D7C7F670"
}]
}
]
}