aboutsummaryrefslogtreecommitdiff
path: root/pages/present.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/present.tsx')
-rw-r--r--pages/present.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/present.tsx b/pages/present.tsx
index 19ef111..d1d18a2 100644
--- a/pages/present.tsx
+++ b/pages/present.tsx
@@ -33,7 +33,11 @@ export class TimedVideoPlayer {
frameToTimestampString(frame: number) {
var timecodeString = new Timecode(frame, this.framerate).toString();
- return timecodeString.replace(/^(00:)+/, '') + 'f';
+ return timecodeString
+ .replace(/^(00:)+/, '')
+ .replace(';', '.')
+ .replace(/(:)(\d+?)$/, '.$2')
+ + 'f';
}
timestampToFrame(timestamp: number): number {