MP3 Streaming problem

If I try to load a sound with streaming:

mySound.loadSound(“mySound.mp3”, true)

it gives me a sound that is interrupted many times. What’s wrong??? How should I solve this problem?

Hi NicoVB,

From the description of your problem, you are most likely experiencing the play catching up with the stream. The code you showed will begin to play the mp3 before it has completed loaded. If the internet connection is slow the amount of the song that plays can actually catch up with amount that has been streamed. At this point the song will stop, download a little more, play a little more, stop. It will continue to do this until the entire song has been streamed/downloaded.

To prevent this you can do at least two things.

  1. Encode your mp3 at the correct bitrate for your audience’s connection speed. If your users are all broadband then 128kbs will be fine. If they are dialup, you will want to create your mp3s at either 24 or 32kbs.

  2. You can create buffer actionscript that waits for so much of the song to be downloaded before it begins play again.