aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/Timeline.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/Timeline.tsx')
-rw-r--r--src/client/views/nodes/Timeline.tsx14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/client/views/nodes/Timeline.tsx b/src/client/views/nodes/Timeline.tsx
index 2b3563963..e2112a0f0 100644
--- a/src/client/views/nodes/Timeline.tsx
+++ b/src/client/views/nodes/Timeline.tsx
@@ -74,7 +74,19 @@ export class Timeline extends CollectionSubView(Document) {
componentDidMount() {
if (StrCast(this.props.Document.type) === "video") {
-
+ console.log("ran");
+ console.log(this.props.Document.duration);
+ if (this.props.Document.duration){
+ this._time = Math.round(NumCast(this.props.Document.duration)) * 1000;
+
+ reaction(() => {
+ return NumCast(this.props.Document.curPage);
+ }, curPage => {
+ this.changeCurrentBarX(curPage * this._tickIncrement / this._tickSpacing)
+ });
+
+ }
+
}
runInAction(() => {
reaction(() => {