My Code is Like This---
mPlayerView.addOnErrorListener(this);
@Override
public void onError(ErrorEvent errorEvent) {
Log.d(TAG, "On Error");
String message=errorEvent.getMessage();
Log.d(TAG,"Messagesssssssssssssss"+message);
Log.e("Error Message",message);
if (message.equals("com.google.android.exoplayer.BehindLiveWindowException"))
{
onResume();
}
Exception exception = new BehindLiveWindowException();
if (exception instanceof BehindLiveWindowException) {
Log.d(TAG, "Inside Exception11111111");
onResume();
}
}
Or you can help me for how to handle the BehindLiveWindowException();
↧