Quantcast
Viewing all articles
Browse latest Browse all 2800

Show useful error message when there's a connection issue.

Hi, I'm currently developing a HLS streaming service. When I disable my wifi (simulate an internet outage), I got an "TypeError: Cannot read property '0' of undefined" error. Which is nonsense to the users (not even to the developers). I want to show a custom error message explaining that there's is a connection issue, but there's no way to detect this kind of error. I know there's "reason" property in "buffer" event, but the "buffer" event never triggered in my case. Is there a way to handle this?

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>