Reset the lastPlayedEvent as it would otherwise be used to discard events in machine.ts as follows: (#250)

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent fc66a7eb79
commit 9362baac3e

View File

@@ -217,6 +217,7 @@ export class Replayer {
*/
public play(timeOffset = 0) {
if (this.service.state.value === 'ended') {
this.service.state.context.lastPlayedEvent = null;
this.service.send({ type: 'REPLAY' });
}
if (this.service.state.value === 'paused') {