快速发布文本节目

555

# 快速发布文本节目

Path:

/api/program/program_name.vsn

Method: POST

Content-type: application/json; charset=utf-8

接口描述: Program_name是节目名称,可修改。请求数据中如果有多个item,也可以改变其中一个或者多个item文本类型,呈现不同文本类型同时显示。 (api/program/program_name.vsn?autoplay=0表示发布后不立即播放)

请求参数 相关字段参考目录:节目文件格式定义

请求示例

{
	"Programs": {
		"Program": {
			"Pages": [{
				"Regions": [{
					"Rect": {
						"X": "0",
						"Y": "0",
						"Width": "256",
						"Height": "100"
					},
					"Items": [{
						"Type": "5",
						"IsScroll": "1",
						"BackColor": "0xFF000000",
						"Text": "多行文本测试",
						"LogFont": {
							"lfHeight": "26",
							"lfUnderline": "0",
							"lfItalic": "0",
							"lfWeight": "0",
							"lfFaceName": ""
						}
					}]
				}]
			}]
		}
	}
}