I am experiencing a strange problem with playing mp3-streams in an AIR/Flex-application. I am using the following code to play a webradio stream:
var s:Sound = new Sound(); var req:URLRequest = new URLRequest("http://220.127.116.11:80/;Stream.mp3"); var context:SoundLoaderContext = new SoundLoaderContext(1000, false); s.load(req, context); s.play();
When I run this code, the stream starts playing but also does incredibly stutter. If I use Windows Media Player, VLC or even the flash based player from the radio stations' website everything plays fine. But whatever I do, there is massive stutter in my AIR-Application only.
When playing arround with other streams, I noticed that streams using port 8080 or 8000 are playing witout any problems. No stutter at all.
So, in short:
- streams in AIR stutter when coming via port 80
- other applications (WMP, VLC and even online flash player) are playing without stutter.