跳到主要内容

新建台标

服务地址

http://api-az-cn.danghongyun.com/rest

请求方法

POST

请求参数

参数说明类型是否必须
accessKey访问接口的accessKeyString必选
actionAPI名称,此接口为 "liveLogoCreate"String必选
versionAPI版本,目前必须为 2.0String必选
signature签名,请参考签名规则String必选
timestampapi调用时间戳,1970年1月1日以来的毫秒数,如1466488681033String必选
namelogo名称String必选
uri台标路径,如:bj-hsy-images/kii721n6/watermarkLive/65112b7ae7394313a679020c3543cae9.jpgString必选
width台标宽度Integer必选
height台标高度Integer必选
offsetWidth台标左上角顶点水平偏移Integer必选
offsetHeight台标左上角顶点垂直偏移Integer必选
opacity台标透明度,0~100,100代表不透明,默认100Integer可选
resize台标缩放比例,1~100,100代表不缩放,默认100Integer可选

响应示例

{
"code": 0,
"success": true,
"message": "operation success",
"result": {
"httpUrl": "http://kii721n6.images.danghongyun.com/watermarkLive/65112b7ae7394313a679020c3543cae9.jpg",
"offsetHeight": 1,
"name": "test logo",
"width": 200,
"offsetWidth": 1,
"resize": 100,
"id": "afe8c827f18044c8942524eb7738f693",
"opacity": 100,
"userId": 805,
"uri": "bj-hsy-images/kii721n6/watermarkLive/65112b7ae7394313a679020c3543cae9.jpg",
"height": 200
}
}

字段说明

字段说明
id唯一标识
name台标名称
userId用户id
width台标宽度
height台标高度
offsetWidth台标左上角距离视频左边的距离(宽度以640为基准,实际输出会按照倍率计算)
offsetHeight台标左上角距离视频顶部的距离(高度以360为基准,实际输出会按照倍率计算)
opacity透明度
resize基于原图的放大倍数,例:100为保持原图大小 50为缩小一倍
httpUrl台标访问地址