Browse Source

Fix playback rate resetting to 1 on source change

Jason Hunter 3 years ago
parent
commit
28dd43f8ae
1 changed files with 3 additions and 0 deletions
  1. 3 0
      web/src/routes/Recording.jsx

+ 3 - 0
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);
       }
     }
   }