aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-26 12:04:45 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-26 12:04:45 +0200
commitcd63a8eafa7da59e11d141c3c879f791bb826457 (patch)
tree4eccb81b3e6f7cef865387131a0424c82526ced4 /pages
parenta6c8792ed73b9c29a11d00920075945749ff048d (diff)
speed change factor working + basic math now works :~
Diffstat (limited to 'pages')
-rw-r--r--pages/present.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/present.tsx b/pages/present.tsx
index 2757cc5..190feb7 100644
--- a/pages/present.tsx
+++ b/pages/present.tsx
@@ -71,7 +71,7 @@ export class TimedVideoPlayer {
if (previousSlide.type != 'speedChange') {
continue;
}
- return this.project?.video?.framerate / (previousSlide as speedChangeSlide).newFramerate;
+ return (previousSlide as speedChangeSlide).newFramerate / this.project?.video?.framerate;
}
return 1;
}
@@ -96,7 +96,7 @@ export class TimedVideoPlayer {
this.slide++;
var event = new CustomEvent('TimedVideoPlayerSlide', { detail: this.timeline[this.slide] });
this.dispatchEvent(event);
- this.player.playbackRate = this.project?.video?.framerate / (slide as speedChangeSlide).newFramerate;
+ this.player.playbackRate = (slide as speedChangeSlide).newFramerate / this.project?.video?.framerate;
break;
}
default: {