fix: restore passing checks for webcam overlay changes

This commit is contained in:
Marcus Schiesser
2026-03-17 20:29:13 +08:00
parent c3e4c86b33
commit 1591f7dfcb
5 changed files with 66 additions and 63 deletions
@@ -970,8 +970,7 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(
const activeSpeedRegion =
speedRegions.find(
(region) =>
currentTime * 1000 >= region.startMs && currentTime * 1000 < region.endMs,
(region) => currentTime * 1000 >= region.startMs && currentTime * 1000 < region.endMs,
) ?? null;
webcamVideo.playbackRate = activeSpeedRegion ? activeSpeedRegion.speed : 1;