Replace when changing playbackRate

This commit is contained in:
Nicolas Mowen 2024-06-25 05:45:55 -06:00
parent bdd8518c4f
commit b65f05383b

View File

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