mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13: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);
|
setHasStartedPlaying(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (videoRef) {
|
||||||
|
void videoRef.setRateAsync(currentSpeed.value, true);
|
||||||
|
}
|
||||||
|
}, [currentSpeed.value, videoRef]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const synchronizePlayback = async () => {
|
const synchronizePlayback = async () => {
|
||||||
if (videoRef && hasStartedPlaying) {
|
if (videoRef && hasStartedPlaying) {
|
||||||
|
Reference in New Issue
Block a user