Fix playback rate resetting to 1 on source change

This commit is contained in:
Jason Hunter 2022-02-08 21:29:12 -05:00 committed by Blake Blackshear
parent 56d24cbf6d
commit 28dd43f8ae

View File

@ -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);
}
}
}