Don't use alert() for error reporting.
Properly detect authentication errors while playing audio.