update rrweb and use the resume method with better performance

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 0e4f6649e4
commit ffdddbac02
3 changed files with 23 additions and 7 deletions

View File

@@ -72,7 +72,11 @@
},
play() {
const { replayer, currentTime } = this.get();
replayer.play(currentTime);
if (currentTime > 0) {
replayer.resume(currentTime);
} else {
replayer.play(currentTime);
}
this.loopTimer();
},
pause() {