diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-05-14 10:28:51 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-05-14 10:28:51 +0200 |
commit | d311c9f5a00fe580f3ba10f4655fd113717c26ea (patch) | |
tree | e4b88de2d7d38e9fd7399a277eb141bc4e31aac4 /pages/present.tsx | |
parent | 7e4f1f5fc3c57a700bef42740d9ff48f2b437a04 (diff) |
speed change when going back in slides
Diffstat (limited to 'pages/present.tsx')
-rw-r--r-- | pages/present.tsx | 2 |
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); } } |