Here's a simple way.
For bandwidth detection you need data transfer.
_Frame 1:_
myDate = new Date()
miStart = myDate.getTime()
on _Frame 2_ place a hidden image 40 to 60 Kb in size, that gives a good
result.
stop();
myDate = new Date();
miEnd = myDate.getTime();
miTime = Number((miEnd-miStart)/1000);
miKB = int((_root.getBytesTotal()/1024)/miTime);
miSpeed = miKB+" KB/S";
if (miKB<=48) {
_root.quality = "low";
}
if ((miKB>48) && (miKB<=96)) {
_root.quality = "medium";
}
if (miKB>96) {
_root.quality = "high";
}
trace(quality);
trace(miSpeed );
Regards,
Stijn
hbruyere wrote:
Hi,
Does anybody have advice to do a simple bandwidth Detector" (Without using
any specific server - i.e Flash communication Server.)
I found this:
http://www.sonify.org/home/feature/remixology/019_bandwidthdetection/page2.h
tml
but was wondering if nothing "better" has been done ?
Why this question:
I working on a web site, and I'm using videos or images as full screen
background.
But I would like to be able to have an idea of the user Internet connection
in order to know if background videos can be activated
Thanks,
Hugues
_______________________________________________
[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
_______________________________________________
[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