aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-5.devices.brown.edu>2022-06-01 14:04:25 -0400
committerMichael Foiani <sotech117@michaels-mbp-5.devices.brown.edu>2022-06-01 14:04:25 -0400
commita46052f0ec637a4bb777d1964413c20ec53dc08b (patch)
treebd07417cf24947fa570638389ce17fe326770203
parent22d39de00ed9a246c520c4c9b1d049a151465d73 (diff)
small refactoring
-rw-r--r--src/client/util/RecordingApi.ts10
1 files changed, 3 insertions, 7 deletions
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