I am integrating SoundCloud into my site and using the HTML5 player widget.
My site creates playlists and auto advances.
I am running into the following problem in testing.
Some sounds rather than playing result in the HTML5 widget displaying the message, "404 Error: Ooops this sound could not be found"
I also use the YouTube API and they have an onError event that makes it easy to handle errors and in my particular case skip to the next track in a playlist.
I have scoured the documentation and StackOverflow and I am surprised to see there is no mention of how to handle this common use-case for SoundCloud.
I do use event binding on the SC HTML5 widget but there is no mention of an error event??
So the question is specifically how can I trap the 404 and then execute custom code?
Thanks very much for an awesome API!
SoundCloud HTML5 widget supports SC.Widget.Events.ERROR event today.
Errors can be caught with:
Error event doesn't provide error message or other details as far as I know.