Closed
Description
SimpleExoPlayer.seekTo(int millis) issue
I have seen several issues requesting the same feature of smoother seeking in Exoplayer
At one thread I have seen your reply mentioning about the decoder but Android's VideoView default seeking is much more smoother when compared to ExoPlayer or MediaPlayer
Here is my code for reference
@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
long seekTo = (long) (mPlayer.getCurrentPosition() - distanceX);
Log.d(TAG, "current scroll position "+seekTo);
mPlayer.seekTo(seekTo);
return true;
}
I am using locally stored mp4 file to play using Exoplayer with TextureView
current exoplayer version - r2.4.1
com.google.android.exoplayer:exoplayer-core:r2.4.1
Are there any configurations that I have to change for smoother seeking?