Reputation: 1065
I am building an application where URL sources will be decided by the speed of the internet connection(Bandwidth). Is there a way that we can ascertain the speed of the internet connection ?
For Example : If the User of my application is using a low speed connection (2G) then i need to provide him with a suitable source. If the user is using a 3G connection then i will provide him with a better quality content through another URL.
So for this i need to ascertain the speed of the internet connection that the user might have. Kindly give me some guidance on this.
Upvotes: 0
Views: 94
Reputation: 1939
send a data of some size to the user and get the total time it takes to finish sending the data. then calculate data size / time needed
.
Upvotes: 1