Skip to content

Support key-frame accurate seeking in HLS #2882

Closed
@mohammed-atif

Description

@mohammed-atif

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions