aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/VideoBox.tsx
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 13:36:13 -0400
committerMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 13:36:13 -0400
commita9ff0c90656de71e37edafba68e946807d41403f (patch)
tree0fb51ede41007ccd31c317aa15b76841e94f38ab /src/client/views/nodes/VideoBox.tsx
parenta20320fc54f2cddffeabce79b22451a6da551aa5 (diff)
fix infinite pause/play bug with a stopper, but still very buggy
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r--src/client/views/nodes/VideoBox.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index 1ff77e373..226c2b1ce 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -154,6 +154,11 @@ 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) {
const err = RecordingApi.Instance.playMovements(this.presentation, this.player?.currentTime || 0, this);