aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-14 10:28:51 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-14 10:28:51 +0200
commitd311c9f5a00fe580f3ba10f4655fd113717c26ea (patch)
treee4b88de2d7d38e9fd7399a277eb141bc4e31aac4 /pages
parent7e4f1f5fc3c57a700bef42740d9ff48f2b437a04 (diff)
speed change when going back in slides
Diffstat (limited to 'pages')
-rw-r--r--pages/present.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/present.tsx b/pages/present.tsx
index 9e65e29..f8f6bc9 100644
--- a/pages/present.tsx
+++ b/pages/present.tsx
@@ -51,6 +51,7 @@ class TimedVideoPlayer {
jumpToSlide(slide: slide) {
this.jumpToFrame(slide.frame);
+ this.player.playbackRate = this.framerate / ((slide as speedChangeSlide).newFramerate || this.framerate);
this.player.pause();
}
@@ -165,7 +166,6 @@ class TimedVideoPlayer {
if (!slide) return;
this.jumpToSlide(slide);
- console.log(this.slide, slide);
}
}