mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:53:25 +00:00
fix: well this effect is probably needed although this shit refuses to work
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user