Get your own customer support community
 

sm2 not playing slow-loading mp3 with autoload:true and timed play()

I'm using sm2 (beautiful, thanks) on a flashcard site (wossis.com). I use soundManager.createSound(autoPlay:false, autoLoad:true) to load an mp3 when the card loads. A js timer fades up the card caption a few seconds after the image, and calls sound.play() to for the caption sound. It worked fine, until TM borked my DSL line. Over an EDGE connection (UK server, my desktop in Malaysia - a very bad scenario), the sounds don't play when triggered by js, but will a few seconds later with a click handled by sound.play()

I added (to a test server on my desk) a 4-second delay _only_ before the mp3 is served, and got the same result. I'm guessing play() doesn't 'know' the mp3 file is being loaded. I changed 'autoLoad:false', which gets around the problem - but that will delay sound loading for all clients. I had a look through the sm2 API, but didn't see anything that might help play() 'notice' that the sound is being loaded. Could play wait for autoLoads to finish?

The mp3s are very short - typically 4kB to 8kB, but EDGE is slow during the day here (I'd be surprised if it was better than 1-2kB/s), and latency will be dire - almost certainly above 1 second - even for name resolution. I can't easily check: my EDGE ISP, while very reliable, blackholes network diagnostics.

Edit - is this the same as:
http://getsatisfaction.com/schillmani...
...only not as detailed?
 
sad I’m having that 'Malaysia' feeling
Inappropriate?
1 person has this question

The company marked this question as answered.


User_default_medium