fixes #22 fix by conde2, similar to line 786 (in handlePlaybackEvent)
@@ -333,7 +333,7 @@ export class PlaybackManager implements IPlaybackParametersListener {
}
public async play(): Promise<void> {
- if (this.cursorIterator !== undefined && this.cursorIterator.EndReached) {
+ if (this.cursorIterator !== undefined && this.cursorIterator.EndReached && this.currentTimestamp.gte(this.cursorIterator.CurrentEnrolledTimestamp)) {
console.log("End reached, resetting");
this.reset();