简体   繁体   中英

How to detect Bandwidth/ Net speed using javascript?

How to detect Bandwidth/ Net speed using javascript ?

Link below is not exactly works.

How to detect internet speed in Javascript?

Can any one cordinate about this issue.

Thanks Anil Neel

In one of my current projects, I came across a scenario to play a video based on the users downloading bandwidth. The detection should be done with javascript. There is a technique, to load an image of known size and calculating the bandwidth on basis of time taken to load that image. Though this technique is not 100% reliable, this will give an approximate estimate of bandwidth.

Example can be found here: http://blog.weareon.net/bandwidth-detection-with-javascript/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM