![](https://secure.gravatar.com/avatar/683d445081e553a383b03bf6ece595b1?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Jwplayer add on Error method is not invoked...
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();