-
Notifications
You must be signed in to change notification settings - Fork 6k
ExoPlayer re-render current frame when pause #6548
Copy link
Copy link
Closed
Labels
Description
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?
Reactions are currently unavailable