updated ReactVideoView.java to fix seeking issue on android

This commit is contained in:
MONSX662 2022-06-07 08:57:31 -04:00
parent 10d8034895
commit c110822b3f

View File

@ -637,7 +637,7 @@ public class ReactVideoView extends ScalableVideoView implements
public void seekTo(int msec) {
if (mMediaPlayerValid) {
mSeekTime = msec;
super.seekTo(msec);
mMediaPlayer.seekTo(msec,3);
if (isCompleted && mVideoDuration != 0 && msec < mVideoDuration) {
isCompleted = false;
}