Tencent / vap

VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Other
3.84k stars 515 forks source link

web端融合参数设置不生效 #351

Closed yongquan88 closed 8 months ago

yongquan88 commented 8 months ago
  1. 问题描述(重现路径) 使用官网的mp4文件,设置web端融合参数设置不生效 使用自己的mp4文件,设置也没生效

https://github.com/Tencent/vap/assets/12765320/cad3adcc-dfcf-44dc-92a6-99c0456ce6e7

vapInstance = new Vap().play( // eslint-disable-next-line prefer-object-spread Object.assign( {}, { container: mp4VapRef.current, // 素材视频链接 src: base64Data, // 素材配置json对象 config: { info: { ...vapc.info, fps: 60, }, }, width: containerWidth, height: containerHeight, }, { // receiver: img, // sender: 'https://cdn.qyinliao.com/user/2023/10/20/3037749962433181186.png', textUser: '哈哈哈哈哈', textAnchor: '呵呵呵呵', type: 2, } ) ); image

  1. 运行环境(手机型号,Android/iOS版本等) electron web页面
  2. 相关日志 没有任何报错
  3. 播放错误的文件(可选)

issue template

  1. Problem description
  2. Running environment (mobile phone model, Android/iOS version, etc.)
  3. Logs
  4. Error file (optional)
yongquan88 commented 8 months ago

已解决了,原来是init Vap时 config参数设置有问题。