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)


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:

I have tested with Google Nexus 7 and Android 5.0.


3 Community Answers


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?



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.


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.