razorRun/react-native-vlc-media-player

Can't seek on android

cheeka13 opened this issue · 3 comments

Guys I can't perform seeking or fast forwarding on Android.
Video always restarts after pressing seek button.
Did check the log cat but have no idea what's going on.

got it, in android/src/main/java/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerViewManager.java change line 120 from videoView.seekTo(Math.round(seek * 1000f)) to videoView.setPosition(seek)

Thanks, i'm facing the same issue.

or in JS

if(Platform.OS==="android"){
   videoRef.current.seek(seekInMilis/1000); // or seekInSeconds
}