aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/VideoBox.tsx
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-06-23 12:36:45 -0400
committerMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-06-23 12:36:45 -0400
commit0370192be9c6c723f198fbf28d2a63ceef0e70d4 (patch)
treea02ff6f2d8391a7e922e66c8a11dfc66f652bc7a /src/client/views/nodes/VideoBox.tsx
parent64200804a1e63981593c89abecedd4ae769da3b6 (diff)
small bug fixes and debugging
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r--src/client/views/nodes/VideoBox.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index b18d3ad1a..680c5f2a9 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -132,7 +132,9 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
public get player(): HTMLVideoElement | null { return this._videoRef; }
- componentDidMount() {
+ componentDidMount() {
+ this._playing = false;
+
this.props.setContentView?.(this); // this tells the DocumentView that this VideoBox is the "content" of the document. this allows the DocumentView to indirectly call getAnchor() on the VideoBox when making a link.
if (this.youtubeVideoId) {
const youtubeaspect = 400 / 315;
@@ -150,8 +152,6 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
if (this.presentation != null) {
ReplayMovements.Instance.setVideoBox(this);
}
-
- this._playing = false;
}
componentWillUnmount() {