I tried loading the flash player from several version of IE, the sound never
starts. I can play the flash on the same computer in firefox or standalone.
But the problem is not that it not geting the data, but not startign to play
the stream.. I use the following code.
<-- code snip -->
this.createTextField("message_txt", this.getNextHighestDepth(),
10,10,300,22)
this.createTextField("status_txt", this.getNextHighestDepth(), 10, 50, 300,
40);
status_txt.autoSize = true;
status_txt.multiline = true;
status_txt.border = true;
_soundbuftime=3;
var globalsound = new Sound();
globalsound.loadSound("http://ss1.gotdns.org:8000/test",true);
globalsound.start(true);
var my_interval:Number;
my_interval = setInterval(checkProgress, 100, globalsound);
function checkProgress(the_sound:Sound):Void {
var pct:Number = Math.round
(the_sound.getBytesLoaded()/the_sound.getBytesTotal()*100);
var pos:Number = Math.round(the_sound.position/the_sound.duration*100);
status_txt.text = the_sound.getBytesLoaded()+" of
"+the_sound.getBytesTotal()+" bytes ("+pct+"%)"+newline;
status_txt.text += the_sound.position+" of "+the_sound.duration+"
milliseconds ("+pos+"%)"+newline;
}
stop();
<--- End code snip -->
The getBytesTotal and duration incresases, the getBtytesloaded and position
stay at 0.. My obsevation says the flash is geting the mp3 stream, yet never
starting to play it?
I am a newbie at codeing flash and useing this project to learn what i can
:)
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com