소스 검색

fix cursor not advancing after pausing then playing (#22)

fixes #22

fix by conde2, similar to line 786 (in handlePlaybackEvent)
sschmid 4 년 전
부모
커밋
ba5f9725d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Playback/PlaybackManager.ts

+ 1 - 1
src/Playback/PlaybackManager.ts

@@ -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();
         }