updated ReactVideoView.java to fix seeking issue on android
This commit is contained in:
parent
10d8034895
commit
c110822b3f
@ -637,7 +637,7 @@ public class ReactVideoView extends ScalableVideoView implements
|
|||||||
public void seekTo(int msec) {
|
public void seekTo(int msec) {
|
||||||
if (mMediaPlayerValid) {
|
if (mMediaPlayerValid) {
|
||||||
mSeekTime = msec;
|
mSeekTime = msec;
|
||||||
super.seekTo(msec);
|
mMediaPlayer.seekTo(msec,3);
|
||||||
if (isCompleted && mVideoDuration != 0 && msec < mVideoDuration) {
|
if (isCompleted && mVideoDuration != 0 && msec < mVideoDuration) {
|
||||||
isCompleted = false;
|
isCompleted = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user