Skip to main content
Participant
February 20, 2008
Question

Error with sound streaming

  • February 20, 2008
  • 2 replies
  • 519 views
Hi all,
I'm trying to catch an mp3 streaming with AS3 but I have a big problem and I don't understood.

Sometimes (one of ten test), the stream play very very slow.
I check if the mp3 is on 44khz , and it's ok.

I search on all sources I have and I don't found any other problems who would be cause an error like this.

Here is the code and I don't have any errors width trace...



This topic has been closed for replies.

2 replies

Participant
April 16, 2008
nemcon. Thanks so much for this hack. It sucks that it has to be done this way, but it works like a charm, and you've saved me from ripping out all of my hair. What I ended up doing is waiting until the Sound is finished buffering to check the length against the bytes loaded. Then I only play the sound once the speed has been confirmed. That way you don't have a jump in the audio.

By the way, since streaming servers and mp3 encoding have been brought up, I'm using live365.com to stream my audio, and I'm using 96kbps/44.1kHz/stereo/constant-bit-rate mp3 and mp3Pro files.
Participant
April 1, 2008
Hi,

i have the same problem mith a radio-mp3-stream. Sometimes it plays a little too fast too, but the slow playback is much more obstrusive with it's monster-tone. Currently I'm trying to check, if the buffering/loading speed is different in this moments and to reload the sound if it is much too fast or too slow, but it seams very tricky to react soon enough.

Is this a bug in the Flash 9 Players or Virtual Machine? Or is there anything I can do?
Participant
April 16, 2008
Me too! This is driving me absolutely crazy. Any solutions yet?
Participant
April 16, 2008
Hop,

I find only one solution : writting in AS2 and not in AS3.

So we find in AS2 an other problem.
The streaming IceCast server & flash in internet explorer.
This is not compatible with a flash player until you hack with a proxy server.
ie : http://www.wimpyplayer.com/products/mp3/icecast.html

I think all of problems can coming from the streaming server...