aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/VideoBox.tsx24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index 5a221fea4..c2da1f456 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -146,7 +146,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
}
this.player && this.setPlayheadTime(0);
- // if presentation data exists, pass it to the recordingPi
+ // if presentation data exists, pass it to ReplayMovments
if (this.presentation != null) {
ReplayMovements.Instance.setVideoBox(this);
}
@@ -157,7 +157,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
this.Pause();
Object.keys(this._disposers).forEach(d => this._disposers[d]?.());
- // dispose the recordingApi's observer
+ // tell ReplayMovements that this VideoBox is no longer active
if (this.presentation != null) {
ReplayMovements.Instance.removeVideoBox();
}
@@ -166,20 +166,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
// plays video
@action public Play = (update: boolean = true) => {
- // if (Doc.UserDoc().presentationMode === 'watching' && !this._playing) {
- // console.log('VideoBox : Play : presentation mode', this._playing);
- // return;
- // }
-
- // if presentation isn't null, call followmovements on the recording api
- // if (this.presentation) {
- // console.log("presentation isn't null")
- // const err = RecordingApi.Instance.playMovements(this.presentation, this.player?.currentTime || 0, this);
- // err && console.log(err)
- // } else {
- // console.log("presentation is null")
- // }
-
this._playing = true;
const eleTime = this.player?.currentTime || 0;
if (this.timeline) {
@@ -221,12 +207,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
// pauses video
@action public Pause = (update: boolean = true) => {
- // if (this.presentation) {
- // console.log('VideoBox : Pause');
- // const err = RecordingApi.Instance.pauseMovements();
- // err && console.log(err);
- // }
-
this._playing = false;
this.removeCurrentlyPlaying();
try {