https://developers.weixin.qq.com/minigame/dev/api/game-recorder/GameRecorder.stop.html
GameRecorder 监听 timeUpdate返回res.currentTime和 stop返回res.duration
这两个的值是一个东西吗?
分享后播放对局回放只有对局的一部分
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小游戏 | Bug | GameRecorder | 微信安卓客户端 | 8.0.1 | 2.15.0 |
https://developers.weixin.qq.com/minigame/dev/api/game-recorder/GameRecorder.stop.html
GameRecorder 监听 timeUpdate返回res.currentTime和 stop返回res.duration
这两个的值是一个东西吗?
分享后播放对局回放只有对局的一部分
2 个回答
我这边华为手机,p40pro,必然出现时长30秒左右,分享出去是5-6秒。苹果ios产品是正常的。辛苦查查原因,能否修复一下
不是,duration是最终视频时长,不是物理经过的时长,比如说二倍速的话,duration就是物理经过时间的一半
text: text,
// 样式参数
style: {
left: systemInfo.windowWidth * x,
top: systemInfo.windowHeight * y,
height: systemInfo.windowHeight * height,
color: '#ffffff',
textAlign: 'center',
fontSize: 16,
borderRadius: 4,
iconMarginRight: 8,
backgroundColor: 'transparent',
},
// 分享参数
share: {
// 背景音乐的路径
bgm: bgm,
timeRange: [[0, Math.min(this.recorderTime, 7200000)]],
button: {
template: 'default.enter',
}
}
});
this.recordShareBtn.show();
this.recordShareBtn.onTap(res => {
console.log(`错误码:${res.error.code},错误信息:${res.error.message}`)
});
}