* Use list for zones to keep chronological order

* Replace when changing playbackRate
This commit is contained in:
Nicolas Mowen
2024-06-25 06:38:37 -06:00
committed by GitHub
parent c3455518c2
commit bfbacee7b5
2 changed files with 12 additions and 8 deletions

View File

@@ -202,7 +202,7 @@ export default function HlsVideoPlayer({
videoRef.current.currentTime = Math.max(0, currentTime + diff);
}}
onSetPlaybackRate={(rate) => {
setPlaybackRate(rate);
setPlaybackRate(rate, true);
if (videoRef.current) {
videoRef.current.playbackRate = rate;