We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dded10 commit 57c8a53Copy full SHA for 57c8a53
packages/rrweb/src/replay/index.ts
@@ -528,6 +528,12 @@ export class Replayer {
528
}
529
530
public playSingleEvent(eventIndex: number) {
531
+ const handleFinish = () => {
532
+ this.service.send('END');
533
+ this.emitter.off(ReplayerEvents.FlushEnd, handleFinish);
534
+ };
535
+ this.emitter.on(ReplayerEvents.FlushEnd, handleFinish);
536
+
537
if (this.service.state.matches('paused')) {
538
this.service.send({
539
type: 'PLAY_SINGLE_EVENT',
packages/rrweb/src/replay/machine.ts
@@ -150,7 +150,7 @@ export function createPlayerService(
150
actions: ['recordTimeOffset', 'play'],
151
},
152
PLAY_SINGLE_EVENT: {
153
- target: 'paused',
+ target: 'playing',
154
actions: ['playSingleEvent'],
155
156
CAST_EVENT: {
0 commit comments