Detecting Internet Connection speed

I have two versions of video - low and high bandwidth. I want to detect client’s internet connection speed to show low or high versions of videos. Is it possible to detect Internet Connection Speed in AS2?