I have an icecast live stream that plays in a webpage using the html5 audio element.
On android phones using chrome the live stream stops playing after about 5-10 minutes in for no apparent reason. Using firefox on android it plays indefinitely with no issues.
I'm not sure how to even approach troubleshooting this. How can I find out what's happening and find a solution (besides telling the user to use a different browser...)
My code is very simple:
<p>The stream may take up to 30 seconds to load.</p>
<audio controls autoplay>
<source src="http://xxx.xxx.xxx.xxx:8000/stream.mp3" type="audio/mpeg">
</audio>
The issue happens on every android phone I've tried and persists despite enabling 'stay awake' in developer options and keeping chrome open with the screen on.