aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 04:48:35 -0400
committerMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 04:48:35 -0400
commita20320fc54f2cddffeabce79b22451a6da551aa5 (patch)
tree035ec8c063c188d2c6fedd8b03d75777f5b1337e /src
parent32f1fb8df81b5dfc12539090c3fe589099bf165b (diff)
Stopping on interaction will pause the presenation and the video.
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RecordingApi.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/util/RecordingApi.ts b/src/client/util/RecordingApi.ts
index ee427e5df..8fb503b00 100644
--- a/src/client/util/RecordingApi.ts
+++ b/src/client/util/RecordingApi.ts
@@ -211,10 +211,10 @@ export class RecordingApi {
return
}
this._isPlaying = true;
- // Doc.UserDoc().presentationMode = 'watching';
+ Doc.UserDoc().presentationMode = 'watching';
// TODO: consider this bug at the end of the clip on seek
- console.log(timeViewed, videoBox?.player?.currentTime)
+ // console.log(timeViewed)
this.videoBox = videoBox || null;
const document = this.playFFView.Document
@@ -229,9 +229,10 @@ export class RecordingApi {
arr.push(setTimeout(() => {
document._panX = panX;
document._panY = panY;
- // if (movement === movements[movements.length - 1]) {
- // this._isPlaying = false;
- // }
+ if (movement === movements[movements.length - 1]) {
+ this._isPlaying = false;
+ Doc.UserDoc().presentationMode = 'none';
+ }
}, timeDiff))
return arr;
}, [])