From 28dd43f8aedc40fbaf11bc4314ccf62cd1c28457 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Tue, 8 Feb 2022 21:29:12 -0500 Subject: [PATCH] Fix playback rate resetting to 1 on source change --- web/src/routes/Recording.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/routes/Recording.jsx b/web/src/routes/Recording.jsx index 0febe56a4..3dba365b0 100644 --- a/web/src/routes/Recording.jsx +++ b/web/src/routes/Recording.jsx @@ -64,6 +64,9 @@ export default function Recording({ camera, date, hour, seconds }) { this.player.playlist.currentItem(selectedHour); if (seconds !== undefined) { this.player.currentTime(seconds); + // Force playback rate to be correct + const playbackRate = this.player.playbackRate(); + this.player.defaultPlaybackRate(playbackRate); } } }