bandwidth detection

i want to my javascript or flash detect user internet speed and play file according to that. may be three slot low, mid and high res videos

i m using jw player. i found some help on internet but didn't work. can somebody make a quick example and post it here. thanks
deepakabcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
deepakabc,

Javascript won't be much help with this.  The script should actually be on the server.  Take a look at the info and script at http://www.adobe.com/devnet/flashcom/articles/flvideo_bandwidth.html .

Let me know if you have any questions or need more information.

b0lsc0tt
0
deepakabcAuthor Commented:
i don't have server...
can we do with java script and play file according to that..

i mean download 20kb image in background and check speed and according to that play flv file ?
0
kishoregpCommented:
Use a preloader, check the amount of bytes loaded and play accordingly.
I guess that should be a safe way to play in any system bandwidth.
0
deepakabcAuthor Commented:
can u suggest some preloader ? is it software or just code
0
kishoregpCommented:
you can use the existing component from the component library or you can code too...
check on for getbytesloaded... gettotalbytes or relevant.. you can google for some quick preloaders too.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.