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

API "onError" not working on Android (easily reproducible)


Hi,

I have been using the API happily on desktop and iOS devices.

Now, I am moving from RTSP to HLS for Android >4.1 devices. However, I just realized that the onError API does not work for Android!

The error is reproducible on your demo page:
http://support.jwplayer.com/customer/portal/articles/1442607-example-a-custom-error-message

I have tested with Google Nexus 7 and Android 5.0.

Thanks!
Sergio

3 Community Answers

sergio.valcarcel

User  
0 rated :

Please, could you confirm that this feature is not available in Android devices?

And, if so, will this be fixed in the short time?

Thanks!

Andrew

JW Player Support Agent  
1 rated :

Hi Sergio,

This is happening due to the RTMP stream on our example page, which is simply not supported on Android. For your own setup, have you been sure to include the “androidhls: true” option in your player config?

Finally, you may need to use an on(‘setupError’) API listener to track when an incompatible format is used with the player.

sergio.valcarcel

User  
0 rated :

Thanks for your answer!

The problem was that I missed the androidhls:'true' property.

Seems to be solved!

This question has received the maximum number of answers.