Closed yongquan88 closed 8 months ago
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, } ) );
已解决了,原来是init Vap时 config参数设置有问题。
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, } ) );
issue template