Skip to main content
Participating Frequently
December 18, 2008
Question

streaming mp3 audio

  • December 18, 2008
  • 6 replies
  • 681 views
i have recoded essentially the same application in AS2.0 and 3.0, both giving the same results. i am trying to stream mp3 audio in flash, and when i test the resulting flash locally it streams fine. however, in a browser nothing happens. in firefox, the status bar will show 'Transferring data from <domain>...', and Internet Explorer and Google Chrome do nothing as well.

if anyone can help me with this please post 😞 and i can post code if needed.
This topic has been closed for replies.

6 replies

kglad
Community Expert
Community Expert
December 19, 2008
then check the shoutcast docs. there's no problem with your actionscript if your target path is correct and there's no security issue.
kglad
Community Expert
Community Expert
December 19, 2008
why are you using http? what kind of server is that?
mischief6Author
Participating Frequently
December 19, 2008
it is SHOUTCast, it uses HTTP as a transport protocol.
kglad
Community Expert
Community Expert
December 18, 2008
that looks like a cross-domain load to flash. use a local path.
mischief6Author
Participating Frequently
December 18, 2008
what do you mean local path? it is a streaming audio server, and it's not on the same port as where the flash will be served.
kglad
Community Expert
Community Expert
December 18, 2008
below your loadSound() method what's trace(url.text+":"+url.text.length) reveal? again, copy and paste.

(and make sure there's no space between the d and left paranthesis)
mischief6Author
Participating Frequently
December 18, 2008
here is what it produced, as i expected:

http://offblast.org:8000/:25
kglad
Community Expert
Community Expert
December 18, 2008
use the attach code option to paste your copied code that shows your sound code.
mischief6Author
Participating Frequently
December 18, 2008
this code is on a button.
kglad
Community Expert
Community Expert
December 18, 2008
are you using cross-domain loading?
mischief6Author
Participating Frequently
December 18, 2008
the audio server is on the same domain. however, my current crossdomain.xml is as unrestrictive as possible.