diff options
| author | bobzel <zzzman@gmail.com> | 2021-01-28 14:28:27 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-01-28 14:28:27 -0500 |
| commit | bc4cabf751097e847f0c64cc5acc25bc1ee09243 (patch) | |
| tree | e752ae8a8dcdb7e2b71f11ef85cdb585443f7772 /src/client/views/nodes/VideoBox.tsx | |
| parent | 61076c3ca711a8d3af01010b2375e3683e26fb8d (diff) | |
more cleanup for switching back to parameterized audioTag/videoTag instead of anchorStartTag
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index c1cf858c0..ee5fffcc6 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -480,8 +480,8 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD } playLink = (doc: Doc) => { - const startTime = NumCast(doc.anchorStartTime, NumCast(doc._timecodeToShow)); - const endTime = NumCast(doc.anchorEndTime, NumCast(doc._timecodeToHide, null)); + const startTime = this._stackedTimeline.current?.anchorStart(doc) || 0; + const endTime = this._stackedTimeline.current?.anchorEnd(doc); if (startTime !== undefined) { if (this.layoutDoc.playOnSelect) endTime ? this.playFrom(startTime, endTime) : this.playFrom(startTime); else this.Seek(startTime); |
