mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
Replace when changing playbackRate
This commit is contained in:
parent
bdd8518c4f
commit
b65f05383b
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user