fix: well this effect is probably needed although this shit refuses to work

This commit is contained in:
Adrian Castro
2024-03-01 20:07:43 +01:00
parent ae760a4b9b
commit 0aa28b4c54

View File

@@ -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) {