I'm developing an iPad web app which plays sounds. From time to time multiple The movie could not be played
alert box errors popup. One pops up for each sound that cannot be played, so if 10 sound bytes are (not) played then 10 alert boxes popup, which is a problem for the user. Often the only way to get rid of them is to reset the iPad.
Is there any way to catch these errors in Javascript, so I can handle them myself (disable sounds) and save the user from the many popups?