How do I know a sound file was invalid?

I am displaying an audio/visual slideshow. I am using SM to play a sound, and I use onFinish to trigger the display of the next page in the slideshow.

Sometimes the sound file I'm trying to play is invalid or 404. What event or callback can I use to handle this situation? I want to be able to proceed when the sound file is no good, but onFinish never fires. I also tried onerror, ontimeout but these don't seem to fire. I tried examining the result of the load, but duration is always null, even for valid sounds...

Assistance would be great. Thanks.
1 person has
this question
+1
Reply