diff --git a/CHANGELOG.md b/CHANGELOG.md index a751c389..36f9a78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ - Update basic example applications (React Native 0.63.4) [#2527](https://github.com/react-native-video/react-native-video/pull/2527) - Fix volume reset issue in exoPlayer [#2371](https://github.com/react-native-video/react-native-video/pull/2371) - Change WindowsTargetPlatformVersion to 10.0 [#2706](https://github.com/react-native-video/react-native-video/pull/2706) +- Fixed Android seeking bug [#2712](https://github.com/react-native-video/react-native-video/pull/2712) ### Version 5.2.0 diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoView.java b/android/src/main/java/com/brentvatne/react/ReactVideoView.java index f3f5fe7b..09285fb7 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoView.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoView.java @@ -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, MediaPlayer.SEEK_CLOSEST); if (isCompleted && mVideoDuration != 0 && msec < mVideoDuration) { isCompleted = false; }