Replay button doesn't work properly
fabio-C opened this issue · comments
Thaks for solve the timing issue!
I got another bug:
When the video end, the replay button appears.
If I click on this button the video doesn't replay. Instead a pause button appears.
To get the video replay, I have to click the button twice.
Android 9
react-native": "0.62.2
react-native-video": "^4.4.5
react-native-video-controls": "^2.4.0
Hi @charliesbot, are you able to reproduce this? Any update?
couldn't reproduce it. could you try with the latest version?
I installed last version and the problem still persist.
I attach a gif video that show the issue:
https://gifyu.com/image/uNTz
This is my onReplay function:
const onReplay = () => {
setPlayerState(PLAYER_STATES.PLAYING);
videoPlayer?.current.seek(0);
};
considering that this UI doesn't have logic to handle states, I think it's related to the handle of the states.
In the past, other issues related to similar concerns were because of the use of the media states that weren't updated accordingly.
Do you mind posting an example that I can reproduce? Quite sure we can dig it and find the problem.
Closing issue due inactivity