aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/VideoBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-26 16:18:41 -0400
committerbobzel <zzzman@gmail.com>2021-09-26 16:18:41 -0400
commitb3c6f5c4abb93c6178bb3d90aa68fad86e690097 (patch)
tree35d816b71e90fc6415fdd36a0c32b2d8908a4014 /src/client/views/nodes/VideoBox.tsx
parent8ee94e1e6e21e03c942fd77f1e7306558c8942dc (diff)
variable renaming refactoring.
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 eb75754b9..0c4693907 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -405,7 +405,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
this._playing = true;
this._playRegionTimer = setTimeout(
() => {
- if (fullPlay) this.setAnchorTime(this.timeline?.trimStart || 0);
+ if (fullPlay) this.setPlayheadTime(this.timeline?.trimStart || 0);
this.Pause();
}, this._playRegionDuration * 1000);
} else {
@@ -452,7 +452,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
timelineWhenChildContentsActiveChanged = action((isActive: boolean) => this.props.whenChildContentsActiveChanged(this._isAnyChildContentActive = isActive));
timelineScreenToLocal = () => this.props.ScreenToLocalTransform().scale(this.scaling()).translate(0, -this.heightPercent / 100 * this.props.PanelHeight());
- setAnchorTime = (time: number) => this.player!.currentTime = this.layoutDoc._currentTimecode = time;
+ setPlayheadTime = (time: number) => this.player!.currentTime = this.layoutDoc._currentTimecode = time;
timelineHeight = () => this.props.PanelHeight() * (100 - this.heightPercent) / 100;
playing = () => this._playing;
@@ -549,7 +549,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
bringToFront={emptyFunction}
CollectionView={undefined}
playFrom={this.playFrom}
- setTime={this.setAnchorTime}
+ setTime={this.setPlayheadTime}
playing={this.playing}
isAnyChildContentActive={this.isAnyChildContentActive}
whenChildContentsActiveChanged={this.timelineWhenChildContentsActiveChanged}