LivePusherContext.applySticker
以 Promise 风格 调用:不支持
小程序插件:不支持
功能描述
添加贴纸特效
参数
Object object
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| type | string | 是 | 贴纸类型 | |
| stickers | Array. | 是 | 贴纸类型 | |
| 结构属性类型默认值必填说明titlestring是贴纸名称pathstring是贴纸资源路径。资源必须为一个资源文件夹路径或一个压缩包路径,文件夹或压缩包内的贴纸资源必须按照{title}_{index}.{ext}格式命名。其中{title}为贴纸名称;{index}为帧序号,从0开始;{ext}为拓展名。lennumber是贴纸帧数idstring否贴纸IDposArray. | ||||
| templateTransSet | Object | 否 | ||
| success | function | 否 | 接口调用成功的回调函数 | |
| fail | function | 否 | 接口调用失败的回调函数 | |
| complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |