Can't seek on android
cheeka13 opened this issue · 3 comments
cheeka13 commented
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.
cheeka13 commented
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)
KevinNguyen263 commented
Thanks, i'm facing the same issue.
R4tch3t commented
or in JS
if(Platform.OS==="android"){
videoRef.current.seek(seekInMilis/1000); // or seekInSeconds
}