From a46052f0ec637a4bb777d1964413c20ec53dc08b Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Wed, 1 Jun 2022 14:04:25 -0400 Subject: small refactoring --- src/client/util/RecordingApi.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/util/RecordingApi.ts b/src/client/util/RecordingApi.ts index 87f44bec4..93906faac 100644 --- a/src/client/util/RecordingApi.ts +++ b/src/client/util/RecordingApi.ts @@ -119,7 +119,7 @@ export class RecordingApi { public resume = () => { this.isRecording = true - // set absoluteStart to the pausedTimestamp + // set absoluteStart to the difference in time this.absoluteStart = new Date().getTime() - this.absoluteStart } @@ -214,13 +214,9 @@ export class RecordingApi { if (presentation.movements === null || this.playFFView === null) { return new Error('[recordingApi.ts] followMovements() failed: no presentation data or no view') } - - if (this._isPlaying) { - //return new Error('[recordingApi.ts] playMovements() failed: already playing') - return - } + if(this._isPlaying) return; + this._isPlaying = true; - console.log('setWatching lol') Doc.UserDoc().presentationMode = 'watching'; // TODO: consider this bug at the end of the clip on seek -- cgit v1.2.3-70-g09d2