aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-11-04 16:09:13 -0400
committermehekj <mehek.jethani@gmail.com>2021-11-04 16:09:13 -0400
commitbcae1802bc5277811476ce968a337813a7841fb6 (patch)
tree783aca01ca1fb09dfc8f0804f8d663f1d1fdb5ab /src/client/views/nodes/AudioBox.tsx
parent3ba076f93e2aa182698a229b381a77765f11213e (diff)
smooth scroll in timeline while playing audio
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index a896c7d90..b51908e20 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -21,7 +21,7 @@ import { ContextMenuProps } from "../ContextMenuItem";
import { ViewBoxAnnotatableComponent, ViewBoxAnnotatableProps } from "../DocComponent";
import "./AudioBox.scss";
import { FieldView, FieldViewProps } from "./FieldView";
-import { timeStamp } from "console";
+import { time, timeStamp } from "console";
declare class MediaRecorder {
constructor(e: any); // whatever MediaRecorder has
@@ -139,6 +139,8 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
}
});
this.layoutDoc._currentTimecode = this._ele.currentTime;
+ console.log("current time: " + this.layoutDoc._currentTimecode);
+ this.timeline?.scrollToTime(NumCast(this.layoutDoc._currentTimecode));
}
}