Skip to content

ExoPlayer re-render current frame when pause #6548

@xiaos

Description

@xiaos

I am using exoplayer with surfaceTexture.

    SimpleExoPlayer exoPlayer = ExoPlayerFactory.newSimpleInstance(this, new DefaultTrackSelector());
    Surface surface = new Surface(surfaceTexture);

For each frame decoded, i will receive a callback in
public void onFrameAvailable(SurfaceTexture surfaceTexture) {
}

When i pause the player, i want to refresh my surfaceView with the current frame, by calling seekTo(exoPlayer.getPosition()); this is working when i am using MediaPlayer, but after I changed to exoplayer, i cannot seekTo the current position.

I just want to let exoplayer send the current decoded frame to surface. any suggestion?

Any suggestion?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions