Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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();

6 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

Please refer to the project below:
http://qa.jwplayer.com.s3.amazonaws.com/~george/LiveWindowRecoveryExample.zip

Ammy

User  
0 rated :

Hey George thanks for the support it is correctly working but now i am stuck in this below problem-:



W/AHierarchicalStateMachine: Warning message AMessage(what = 'omx ', target = 1) = {
int32_t type = 0
int32_t node = 61
int32_t event = 1
int32_t data1 = -2147479531
int32_t data2 = 0
} unhandled in root state.

It shows in my AndroidMonitor console and my livestreaming paused automatically..
Can you please give me solution for this...
Thanks!

George

JW Player Support Agent  
0 rated :

Hi,

Haven’t seen that before.

For me to reproduce this issue reliably I will need this information about your application:

Android API Build level (16,17… 22):
JW Player SDK for Android version number:
Device make and model where you are experiencing this issue:
Provide step by step instructions on how to reproduce your issue:
JW Player Demo Application Source Code that is also experiencing the issue:

As the last field suggests, please replicate this issue using the JW Player Demo Application and send us a link to a zipped version of the entire Android Studio Project for testing which can be found here:
https://github.com/jwplayer/jwplayer-sdk-android-demo

Ammy

User  
0 rated :

minSdkVersion 19
targetSdkVersion 25
versionCode 5
versionName "v0.5"

Ammy

User  
0 rated :

Here is my app configuration:-

minSdkVersion 19
targetSdkVersion 25
versionCode 5
versionName "v0.5"

Here is my Jwplayer dependency

compile 'com.longtailvideo.jwplayer:jwplayer-chromecast:+'
compile 'com.longtailvideo.jwplayer:jwplayer-core:+'
compile 'com.longtailvideo.jwplayer:jwplayer-common:+'

I am using latest version of Jwplayer (2.7.0 +15)

George

JW Player Support Agent  
0 rated :

Provide step by step instructions on how to reproduce your issue:
JW Player Demo Application Source Code that is also experiencing the issue:

As the last field suggests, please replicate this issue using the JW Player Demo Application and send us a link to a zipped version of the entire Android Studio Project for testing which can be found here:
https://github.com/jwplayer/jwplayer-sdk-android-demo

This question has received the maximum number of answers.