I have two instances of Exoplayer with different mediasources.
Currently
Before initializing either of player. I am checking if any player attached to the surface if yes then releasing the player and initializing again with new operator
if(videoPlayerView.getPlayer() != null) {
videoPlayerView.getPlayer().release();
videoPlayerView.setPlayer(null);
}
videoPlayerView is my PlayerView in SimpleExoPlayer
But after View detached list item becomes black instead of playing again.