LunatiqueCoder / react-native-media-console

A React Native video player. Built with TypeScript ❤️
MIT License
184 stars 28 forks source link

Fix forward button #58

Closed leadmrn closed 10 months ago

leadmrn commented 1 year ago

Hi,

I noticed a bug, when you press the forward button when you are in the rewind time of the end of the video, the video starts looping.

So I fixed that by bringing the video to the end and pausing it.

LunatiqueCoder commented 1 year ago

Hey @leadmrn

I just tried to reproduce this but but I did not manage to. :( However, I will test your suggestions and see if anything changes for the better.

Would be great if you could help me reproduce it by providing a reproduction code or a video/gif.

LunatiqueCoder commented 10 months ago

Closing as I didn't manage to reproduce it.

LunatiqueCoder commented 9 months ago

Might be related: https://github.com/react-native-video/react-native-video/issues/836#issuecomment-341381704

My fix:

 const onEnd = () => videoRef?.current?.seek(0);