描述

获取播放器设置

接口地址

http://e.vhall.com/api/vhallapi/v2/webinar/get-player-config

请求参数

参数名 类型 必选 说明
webinar_id int 直播id

接口中必须包含公共请求参数。关于公共请求参数详细内容,请参考 公共请求参数

响应参数

返回形如''{"code":200,"msg":"success","data":{"scrolling_text":{"text_type":1,"text":"test","alpha":50,"size":20,"color":"#ffffff","interval":20,"speed":3000,"position":1,"scrolling_open":1},"watermark":{"img_url":"test.jpg","img_alpha":50,"img_position":1,"watermark_open":1}}}''的json。data部分数据如下:

参数名 类型 必选 说明
scrolling_text json 未开启返回null,获取成功,返回列表数据(JSON格式),包含播放器跑马灯的所有参数
watermark json 未开启返回null,获取成功,返回列表数据(JSON格式),包含播放器水印的所有参数

响应示例

{
	"code": 200,
	"msg": "success",
	"data": {
		"scrolling_text": {
			"text_type": 1,
			"text": "test",
			"alpha": 50,
			"size": 20,
			"color": "#ffffff",
			"interval": 20,
			"speed": 3000,
			"position": 1,
			"scrolling_open": 1
		},
		"watermark": {
			"img_url": "test.jpg",
			"img_alpha": 50,
			"img_position": 1,
			"watermark_open": 1
		}
	}
}