From 0aa28b4c54b725ba002a11cf2a51bd3e4c7994b4 Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Fri, 1 Mar 2024 20:07:43 +0100 Subject: [PATCH] fix: well this effect is probably needed although this shit refuses to work --- apps/expo/src/components/player/VideoPlayer.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/expo/src/components/player/VideoPlayer.tsx b/apps/expo/src/components/player/VideoPlayer.tsx index a65cc1b..2a3227e 100644 --- a/apps/expo/src/components/player/VideoPlayer.tsx +++ b/apps/expo/src/components/player/VideoPlayer.tsx @@ -230,6 +230,12 @@ export const VideoPlayer = () => { setHasStartedPlaying(true); }; + useEffect(() => { + if (videoRef) { + void videoRef.setRateAsync(currentSpeed.value, true); + } + }, [currentSpeed.value, videoRef]); + useEffect(() => { const synchronizePlayback = async () => { if (videoRef && hasStartedPlaying) {