According to Google ver 2.0 it is very unstable for the game Live HLS. Therefore, I do not recommend currently switching to 2.0 for Live HLS play. Turning to your BehindLiveWindowException issue, Google is still working to fix this issue as part of the Live HLS search feature.
:
https://github.com/google/ExoPlayer/issues/1782
, preparePlayer() onError().
@Ovierride
public void onError(Exception e) {
if (e instanceof ExoPlaybackException
&& e.getCause() instanceof BehindLiveWindowException) {
preparePlayer(true);
}
}