From c7058615587ebc6a8806b61a51fe0439d3daa7ad Mon Sep 17 00:00:00 2001
From: Michael Foiani <sotech117@michaels-mbp-5.devices.brown.edu>
Date: Wed, 15 Jun 2022 15:55:32 -0400
Subject: remove comments in videobox

---
 src/client/views/nodes/VideoBox.tsx | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

(limited to 'src/client/views/nodes/VideoBox.tsx')

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 {
-- 
cgit v1.2.3-70-g09d2

